; LLVM IR from kacperks/Fractal_Engine :: Engine/Thirdparty/cmake/Engine/Thirdparty/cmake/openal-soft/alc (alconfig)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<(anonymous namespace)::ConfigEntry, al::allocator<(anonymous namespace)::ConfigEntry, 8>>::_Vector_impl" }
%"struct.std::_Vector_base<(anonymous namespace)::ConfigEntry, al::allocator<(anonymous namespace)::ConfigEntry, 8>>::_Vector_impl" = type { %"struct.std::_Vector_base<(anonymous namespace)::ConfigEntry, al::allocator<(anonymous namespace)::ConfigEntry, 8>>::_Vector_impl_data" }
%"struct.std::_Vector_base<(anonymous namespace)::ConfigEntry, al::allocator<(anonymous namespace)::ConfigEntry, 8>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%class.anon = type { ptr }
%"struct.(anonymous namespace)::ConfigEntry" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }

@_ZN12_GLOBAL__N_18ConfOptsE = external hidden global %"class.std::vector", align 8
@gLogLevel = external global i32, align 4
@gLogFile = external global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z14GetConfigValuePKcS0_S0_S0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #4 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %class.anon, align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %23, label %21

21:                                               ; preds = %4
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %22, ptr %5, align 8
  br label %143

23:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %52

26:                                               ; preds = %23
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = call noundef i32 @_ZN2al10strcasecmpEPKcS1_(ptr noundef %27, ptr noundef @.str.14) #7
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %52

30:                                               ; preds = %26
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %31)
          to label %33 unwind label %42

33:                                               ; preds = %30
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %46

36:                                               ; preds = %33
  %37 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %10, i8 noundef signext 47)
          to label %38 unwind label %42

38:                                               ; preds = %36
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %39)
          to label %41 unwind label %42

41:                                               ; preds = %38
  br label %46

42:                                               ; preds = %61, %58, %55, %48, %46, %38, %36, %30
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %11, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %12, align 4
  br label %142

46:                                               ; preds = %41, %33
  %47 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %10, i8 noundef signext 47)
          to label %48 unwind label %42

48:                                               ; preds = %46
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %49)
          to label %51 unwind label %42

51:                                               ; preds = %48
  br label %65

52:                                               ; preds = %26, %23
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %61

55:                                               ; preds = %52
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %56)
          to label %58 unwind label %42

58:                                               ; preds = %55
  %59 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %10, i8 noundef signext 47)
          to label %60 unwind label %42

60:                                               ; preds = %58
  br label %61

61:                                               ; preds = %60, %52
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef %62)
          to label %64 unwind label %42

64:                                               ; preds = %61
  br label %65

65:                                               ; preds = %64, %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %66 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN12_GLOBAL__N_18ConfOptsE) #7
  %67 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %66, ptr %67, align 8
  %68 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN12_GLOBAL__N_18ConfOptsE) #7
  %69 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %68, ptr %69, align 8
  %70 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 0
  store ptr %10, ptr %70, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %72 = load ptr, ptr %71, align 8
  %73 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8
  %75 = getelementptr inbounds %class.anon, ptr %16, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8
  %77 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS3_N2al9allocatorIS3_Lm8EEEEEEZ14GetConfigValuePKcSD_SD_SD_E3$_0ET_SF_SF_T0_"(ptr %72, ptr %74, ptr %76)
          to label %78 unwind label %99

78:                                               ; preds = %65
  %79 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %77, ptr %79, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %80 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN12_GLOBAL__N_18ConfOptsE) #7
  %81 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %80, ptr %81, align 8
  %82 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br i1 %82, label %83, label %115

83:                                               ; preds = %78
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr @gLogLevel, align 4, !tbaa !9
  %86 = icmp sge i32 %85, 3
  %87 = xor i1 %86, true
  %88 = xor i1 %87, true
  %89 = zext i1 %88 to i64
  %90 = call i64 @llvm.expect.i64(i64 %89, i64 0)
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %92, label %103

92:                                               ; preds = %84
  %93 = load ptr, ptr @gLogFile, align 8, !tbaa !5
  %94 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  %95 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %96 = getelementptr inbounds %"struct.(anonymous namespace)::ConfigEntry", ptr %95, i32 0, i32 1
  %97 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %96) #7
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.15, ptr noundef %94, ptr noundef %97) #7
  br label %103

99:                                               ; preds = %135, %65
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %11, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %142

103:                                              ; preds = %92, %84
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %107 = getelementptr inbounds %"struct.(anonymous namespace)::ConfigEntry", ptr %106, i32 0, i32 1
  %108 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %107) #7
  br i1 %108, label %113, label %109

109:                                              ; preds = %105
  %110 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  %111 = getelementptr inbounds %"struct.(anonymous namespace)::ConfigEntry", ptr %110, i32 0, i32 1
  %112 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %111) #7
  store ptr %112, ptr %5, align 8
  store i32 1, ptr %18, align 4
  br label %141

113:                                              ; preds = %105
  %114 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %114, ptr %5, align 8
  store i32 1, ptr %18, align 4
  br label %141

115:                                              ; preds = %78
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = icmp ne ptr %116, null
  br i1 %117, label %135, label %118

118:                                              ; preds = %115
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr @gLogLevel, align 4, !tbaa !9
  %121 = icmp sge i32 %120, 3
  %122 = xor i1 %121, true
  %123 = xor i1 %122, true
  %124 = zext i1 %123 to i64
  %125 = call i64 @llvm.expect.i64(i64 %124, i64 0)
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %131

127:                                              ; preds = %119
  %128 = load ptr, ptr @gLogFile, align 8, !tbaa !5
  %129 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.16, ptr noundef %129) #7
  br label %131

131:                                              ; preds = %127, %119
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %134, ptr %5, align 8
  store i32 1, ptr %18, align 4
  br label %141

135:                                              ; preds = %115
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = invoke noundef ptr @_Z14GetConfigValuePKcS0_S0_S0_(ptr noundef null, ptr noundef %136, ptr noundef %137, ptr noundef %138)
          to label %140 unwind label %99

140:                                              ; preds = %135
  store ptr %139, ptr %5, align 8
  store i32 1, ptr %18, align 4
  br label %141

141:                                              ; preds = %140, %133, %113, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  br label %143

142:                                              ; preds = %99, %42
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  br label %145

143:                                              ; preds = %141, %21
  %144 = load ptr, ptr %5, align 8
  ret ptr %144

145:                                              ; preds = %142
  %146 = load ptr, ptr %11, align 8
  %147 = load i32, ptr %12, align 4
  %148 = insertvalue { ptr, i32 } poison, ptr %146, 0
  %149 = insertvalue { ptr, i32 } %148, i32 %147, 1
  resume { ptr, i32 } %149
}

; Function Attrs: nounwind
declare noundef i32 @_ZN2al10strcasecmpEPKcS1_(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS3_N2al9allocatorIS3_Lm8EEEEEEZ14GetConfigValuePKcSD_SD_SD_E3$_0ET_SF_SF_T0_"(ptr, ptr, ptr) #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS8LogLevel", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<(anonymous namespace)::ConfigEntry, al::allocator<(anonymous namespace)::ConfigEntry, 8>>::_Vector_impl" }
%"struct.std::_Vector_base<(anonymous namespace)::ConfigEntry, al::allocator<(anonymous namespace)::ConfigEntry, 8>>::_Vector_impl" = type { %"struct.std::_Vector_base<(anonymous namespace)::ConfigEntry, al::allocator<(anonymous namespace)::ConfigEntry, 8>>::_Vector_impl_data" }
%"struct.std::_Vector_base<(anonymous namespace)::ConfigEntry, al::allocator<(anonymous namespace)::ConfigEntry, 8>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZN12_GLOBAL__N_18ConfOptsE = external hidden global %"class.std::vector", align 8
@gLogLevel = external local_unnamed_addr global i32, align 4
@gLogFile = external local_unnamed_addr global ptr, align 8
@.str.14 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z14GetConfigValuePKcS0_S0_S0_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %.not = icmp eq ptr %2, null
  br i1 %.not, label %64, label %8

8:                                                ; preds = %4
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %.not27 = icmp eq ptr %1, null
  br i1 %.not27, label %20, label %9

9:                                                ; preds = %8
  %10 = call noundef i32 @_ZN2al10strcasecmpEPKcS1_(ptr noundef nonnull %1, ptr noundef nonnull @.str.14) #7
  %.not28 = icmp eq i32 %10, 0
  br i1 %.not28, label %20, label %11

11:                                               ; preds = %9
  %12 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %1)
          to label %13 unwind label %18

13:                                               ; preds = %11
  %.not30 = icmp eq ptr %0, null
  br i1 %.not30, label %.invoke33, label %14

14:                                               ; preds = %13
  %15 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext 47)
          to label %16 unwind label %18

16:                                               ; preds = %14
  %17 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %0)
          to label %.invoke33 unwind label %18

18:                                               ; preds = %.invoke33, %.invoke, %21, %16, %14, %11
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %63

20:                                               ; preds = %9, %8
  %.not29 = icmp eq ptr %0, null
  br i1 %.not29, label %.invoke, label %21

21:                                               ; preds = %20
  %22 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %0)
          to label %.invoke33 unwind label %18

.invoke33:                                        ; preds = %21, %13, %16
  %23 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %5, i8 noundef signext 47)
          to label %.invoke unwind label %18

.invoke:                                          ; preds = %.invoke33, %20
  %24 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEPKc(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull %2)
          to label %25 unwind label %18

25:                                               ; preds = %.invoke
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %26 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN12_GLOBAL__N_18ConfOptsE) #7
  %27 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN12_GLOBAL__N_18ConfOptsE) #7
  %28 = invoke ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS3_N2al9allocatorIS3_Lm8EEEEEEZ14GetConfigValuePKcSD_SD_SD_E3$_0ET_SF_SF_T0_"(ptr %26, ptr %27, ptr nonnull %5)
          to label %29 unwind label %42

29:                                               ; preds = %25
  store ptr %28, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %30 = call ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN12_GLOBAL__N_18ConfOptsE) #7
  store ptr %30, ptr %7, align 8
  %31 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br i1 %31, label %32, label %52

32:                                               ; preds = %29
  %33 = load i32, ptr @gLogLevel, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 2
  br i1 %34, label %35, label %44, !prof !9

35:                                               ; preds = %32
  %36 = load ptr, ptr @gLogFile, align 8, !tbaa !10
  %37 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %38 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %39 = getelementptr inbounds i8, ptr %38, i64 32
  %40 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %39) #7
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str.15, ptr noundef %37, ptr noundef %40) #7
  br label %44

42:                                               ; preds = %60, %25
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %63

44:                                               ; preds = %35, %32
  %45 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %46 = getelementptr inbounds i8, ptr %45, i64 32
  %47 = call noundef zeroext i1 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #7
  br i1 %47, label %62, label %48

48:                                               ; preds = %44
  %49 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #7
  %50 = getelementptr inbounds i8, ptr %49, i64 32
  %51 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %50) #7
  br label %62

52:                                               ; preds = %29
  %.not31 = icmp eq ptr %0, null
  br i1 %.not31, label %53, label %60

53:                                               ; preds = %52
  %54 = load i32, ptr @gLogLevel, align 4, !tbaa !5
  %55 = icmp sgt i32 %54, 2
  br i1 %55, label %56, label %62, !prof !9

56:                                               ; preds = %53
  %57 = load ptr, ptr @gLogFile, align 8, !tbaa !10
  %58 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str.16, ptr noundef %58) #7
  br label %62

60:                                               ; preds = %52
  %61 = invoke noundef ptr @_Z14GetConfigValuePKcS0_S0_S0_(ptr noundef null, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3)
          to label %62 unwind label %42

62:                                               ; preds = %60, %53, %56, %44, %48
  %.0 = phi ptr [ %51, %48 ], [ %3, %44 ], [ %3, %56 ], [ %3, %53 ], [ %61, %60 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  br label %64

63:                                               ; preds = %42, %18
  %.pn = phi { ptr, i32 } [ %43, %42 ], [ %19, %18 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn

64:                                               ; preds = %4, %62
  %.1 = phi ptr [ %.0, %62 ], [ %3, %4 ]
  ret ptr %.1
}

; Function Attrs: nounwind
declare noundef i32 @_ZN2al10strcasecmpEPKcS1_(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden ptr @"_ZSt7find_ifIN9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS3_N2al9allocatorIS3_Lm8EEEEEEZ14GetConfigValuePKcSD_SD_SD_E3$_0ET_SF_SF_T0_"(ptr, ptr, ptr) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE6cbeginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden ptr @_ZNKSt6vectorIN12_GLOBAL__N_111ConfigEntryEN2al9allocatorIS1_Lm8EEEE4cendEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZN9__gnu_cxxneIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN12_GLOBAL__N_111ConfigEntryESt6vectorIS2_N2al9allocatorIS2_Lm8EEEEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"_ZTS8LogLevel", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass