; LLVM IR from xhub/reshop :: gui/external/imgui/imgui_impl_opengl3.ll (Z22ImGui_ImplOpenGL3_InitPKc)

; 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"

%union.ImGL3WProcs = type { [59 x ptr] }
%struct.ImNewWrapper = type { i8 }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, %struct.ImVec2, ptr, %struct.ImVec2, [5 x i8], float, float, i32, i8, i8, i8, i8, i32, [154 x %struct.ImGuiKeyData], i8, %struct.ImVec2, [5 x %struct.ImVec2], [5 x double], [5 x i8], [5 x i8], [5 x i16], [5 x i16], [5 x i8], [5 x i8], [5 x i8], i8, i8, [5 x float], [5 x float], [5 x float], float, i8, i8, i16, %struct.ImVector, ptr, ptr, ptr }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVec2 = type { float, float }
%struct.ImVector = type { i32, i32, ptr }
%struct.anon.0 = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.ImGui_ImplOpenGL3_Data = type <{ i32, [32 x i8], i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i8, i8, i8, [5 x i8] }>

@imgl3wProcs = external dso_local global %union.ImGL3WProcs, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__._Z22ImGui_ImplOpenGL3_InitPKc = external hidden unnamed_addr constant [42 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @imgl3wInit() #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z22ImGui_ImplOpenGL3_InitPKc(ptr noundef %0) #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca %struct.ImNewWrapper, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %17 = call noundef nonnull align 8 dereferenceable(2976) ptr @_ZN5ImGui5GetIOEv()
  store ptr %17, ptr %4, align 8, !tbaa !5
  %18 = call noundef zeroext i1 @_ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm(ptr noundef @.str, i64 noundef 2976, i64 noundef 1156, i64 noundef 8, i64 noundef 16, i64 noundef 20, i64 noundef 2)
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.ImGuiIO, ptr %19, i32 0, i32 49
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = icmp eq ptr %21, null
  br i1 %22, label %23, label %24

23:                                               ; preds = %1
  br label %24

24:                                               ; preds = %23, %1
  %25 = phi i1 [ false, %1 ], [ true, %23 ]
  br i1 %25, label %26, label %27

26:                                               ; preds = %24
  br label %29

27:                                               ; preds = %24
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 284, ptr noundef @__PRETTY_FUNCTION__._Z22ImGui_ImplOpenGL3_InitPKc) #9
  unreachable

28:                                               ; No predecessors!
  br label %29

29:                                               ; preds = %28, %26
  %30 = call i32 @imgl3wInit()
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %35

32:                                               ; preds = %29
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef @.str.4) #8
  store i1 false, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %173

35:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  %36 = call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 104)
  %37 = call noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef 104, ptr noundef %36)
  invoke void @_ZN22ImGui_ImplOpenGL3_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(99) %37)
          to label %38 unwind label %56

38:                                               ; preds = %35
  store ptr %37, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.ImGuiIO, ptr %40, i32 0, i32 49
  store ptr %39, ptr %41, align 8, !tbaa !9
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.ImGuiIO, ptr %42, i32 0, i32 47
  store ptr @.str.5, ptr %43, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %44 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 39), align 8, !tbaa !19
  %45 = call noundef ptr %44(i32 noundef 7938)
  store ptr %45, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  store i32 0, ptr %11, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !20
  %46 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !19
  call void %46(i32 noundef 33307, ptr noundef %11)
  %47 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !19
  call void %47(i32 noundef 33308, ptr noundef %12)
  %48 = load i32, ptr %11, align 4, !tbaa !20
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %60

50:                                               ; preds = %38
  %51 = load i32, ptr %12, align 4, !tbaa !20
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %60

53:                                               ; preds = %50
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %54, ptr noundef @.str.6, ptr noundef %11, ptr noundef %12) #8
  br label %60

56:                                               ; preds = %35
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %8, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %9, align 4
  call void @_ZdlPv12ImNewWrapperS_(ptr noundef %37, ptr noundef %36) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %175

60:                                               ; preds = %53, %50, %38
  %61 = load i32, ptr %11, align 4, !tbaa !20
  %62 = mul nsw i32 %61, 100
  %63 = load i32, ptr %12, align 4, !tbaa !20
  %64 = mul nsw i32 %63, 10
  %65 = add nsw i32 %62, %64
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %66, i32 0, i32 0
  store i32 %65, ptr %67, align 8, !tbaa !21
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !21
  %71 = icmp uge i32 %70, 320
  br i1 %71, label %72, label %76

72:                                               ; preds = %60
  %73 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !19
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %74, i32 0, i32 6
  call void %73(i32 noundef 37158, ptr noundef %75)
  br label %76

76:                                               ; preds = %72, %60
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %77, i32 0, i32 6
  %79 = load i32, ptr %78, align 8, !tbaa !24
  %80 = and i32 %79, 2
  %81 = icmp ne i32 %80, 0
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %82, i32 0, i32 4
  %84 = zext i1 %81 to i8
  store i8 %84, ptr %83, align 2, !tbaa !25
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = call i32 @strncmp(ptr noundef %85, ptr noundef @.str.7, i64 noundef 11) #10
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %91

88:                                               ; preds = %76
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %89, i32 0, i32 3
  store i8 1, ptr %90, align 1, !tbaa !26
  br label %91

91:                                               ; preds = %88, %76
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %92, i32 0, i32 20
  store i8 0, ptr %93, align 2, !tbaa !27
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %94, i32 0, i32 0
  %96 = load i32, ptr %95, align 8, !tbaa !21
  %97 = icmp uge i32 %96, 320
  br i1 %97, label %98, label %103

98:                                               ; preds = %91
  %99 = load ptr, ptr %4, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.ImGuiIO, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !28
  %102 = or i32 %101, 8
  store i32 %102, ptr %100, align 4, !tbaa !28
  br label %103

103:                                              ; preds = %98, %91
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = icmp eq ptr %104, null
  br i1 %105, label %106, label %107

106:                                              ; preds = %103
  store ptr @.str.8, ptr %3, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %106, %103
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = call i64 @strlen(ptr noundef %108) #10
  %110 = trunc i64 %109 to i32
  %111 = add nsw i32 %110, 2
  %112 = icmp slt i32 %111, 32
  br i1 %112, label %113, label %114

113:                                              ; preds = %107
  br label %116

114:                                              ; preds = %107
  call void @__assert_fail(ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 362, ptr noundef @__PRETTY_FUNCTION__._Z22ImGui_ImplOpenGL3_InitPKc) #9
  unreachable

115:                                              ; No predecessors!
  br label %116

116:                                              ; preds = %115, %113
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %117, i32 0, i32 1
  %119 = getelementptr inbounds [32 x i8], ptr %118, i64 0, i64 0
  %120 = load ptr, ptr %3, align 8, !tbaa !5
  %121 = call ptr @strcpy(ptr noundef %119, ptr noundef %120) #8
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds [32 x i8], ptr %123, i64 0, i64 0
  %125 = call ptr @strcat(ptr noundef %124, ptr noundef @.str.10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %126 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !19
  call void %126(i32 noundef 32873, ptr noundef %13)
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %127, i32 0, i32 2
  %129 = load i8, ptr %128, align 4, !tbaa !29, !range !30, !noundef !31
  %130 = trunc i8 %129 to i1
  br i1 %130, label %137, label %131

131:                                              ; preds = %116
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %132, i32 0, i32 3
  %134 = load i8, ptr %133, align 1, !tbaa !26, !range !30, !noundef !31
  %135 = trunc i8 %134 to i1
  %136 = xor i1 %135, true
  br label %137

137:                                              ; preds = %131, %116
  %138 = phi i1 [ false, %116 ], [ %136, %131 ]
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %139, i32 0, i32 18
  %141 = zext i1 %138 to i8
  store i8 %141, ptr %140, align 8, !tbaa !32
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 8, !tbaa !21
  %145 = icmp uge i32 %144, 450
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %146, i32 0, i32 19
  %148 = zext i1 %145 to i8
  store i8 %148, ptr %147, align 1, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !20
  %149 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !19
  call void %149(i32 noundef 33309, ptr noundef %14)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !20
  br label %150

150:                                              ; preds = %169, %137
  %151 = load i32, ptr %15, align 4, !tbaa !20
  %152 = load i32, ptr %14, align 4, !tbaa !20
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %172

155:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %156 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 40), align 8, !tbaa !19
  %157 = load i32, ptr %15, align 4, !tbaa !20
  %158 = call noundef ptr %156(i32 noundef 7939, i32 noundef %157)
  store ptr %158, ptr %16, align 8, !tbaa !5
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %168

161:                                              ; preds = %155
  %162 = load ptr, ptr %16, align 8, !tbaa !5
  %163 = call i32 @strcmp(ptr noundef %162, ptr noundef @.str.11) #10
  %164 = icmp eq i32 %163, 0
  br i1 %164, label %165, label %168

165:                                              ; preds = %161
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %166, i32 0, i32 19
  store i8 1, ptr %167, align 1, !tbaa !33
  br label %168

168:                                              ; preds = %165, %161, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %169

169:                                              ; preds = %168
  %170 = load i32, ptr %15, align 4, !tbaa !20
  %171 = add nsw i32 %170, 1
  store i32 %171, ptr %15, align 4, !tbaa !20
  br label %150, !llvm.loop !34

172:                                              ; preds = %154
  store i1 true, ptr %2, align 1
  store i32 1, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %173

173:                                              ; preds = %172, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %174 = load i1, ptr %2, align 1
  ret i1 %174

175:                                              ; preds = %56
  %176 = load ptr, ptr %8, align 8
  %177 = load i32, ptr %9, align 4
  %178 = insertvalue { ptr, i32 } poison, ptr %176, 0
  %179 = insertvalue { ptr, i32 } %178, i32 %177, 1
  resume { ptr, i32 } %179
}

declare noundef nonnull align 8 dereferenceable(2976) ptr @_ZN5ImGui5GetIOEv() #2

declare noundef zeroext i1 @_ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN22ImGui_ImplOpenGL3_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(99)) unnamed_addr #6 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZdlPv12ImNewWrapperS_(ptr noundef, ptr noundef) #5

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #7

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #7

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #7

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { noreturn 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 #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 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 #6 = { 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 willreturn memory(read) "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 #8 = { nounwind }
attributes #9 = { noreturn nounwind }
attributes #10 = { nounwind willreturn memory(read) }

!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, !6, i64 160}
!10 = !{!"_ZTS7ImGuiIO", !11, i64 0, !11, i64 4, !12, i64 8, !13, i64 16, !13, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !14, i64 60, !6, i64 64, !12, i64 72, !14, i64 80, !14, i64 81, !14, i64 82, !14, i64 83, !14, i64 84, !14, i64 85, !14, i64 86, !14, i64 87, !14, i64 88, !14, i64 89, !14, i64 90, !14, i64 91, !14, i64 92, !14, i64 93, !14, i64 94, !14, i64 95, !14, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !14, i64 124, !14, i64 125, !14, i64 126, !14, i64 127, !14, i64 128, !14, i64 129, !14, i64 130, !14, i64 131, !14, i64 132, !14, i64 133, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !14, i64 176, !14, i64 177, !14, i64 178, !14, i64 179, !14, i64 180, !14, i64 181, !14, i64 182, !13, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !12, i64 204, !6, i64 216, !12, i64 224, !7, i64 232, !13, i64 240, !13, i64 244, !15, i64 248, !14, i64 252, !14, i64 253, !14, i64 254, !14, i64 255, !11, i64 256, !7, i64 260, !14, i64 2724, !12, i64 2728, !7, i64 2736, !7, i64 2776, !7, i64 2816, !7, i64 2821, !7, i64 2826, !7, i64 2836, !7, i64 2846, !7, i64 2851, !7, i64 2856, !14, i64 2861, !14, i64 2862, !7, i64 2864, !7, i64 2884, !7, i64 2904, !13, i64 2924, !14, i64 2928, !14, i64 2929, !16, i64 2930, !17, i64 2936, !6, i64 2952, !6, i64 2960, !6, i64 2968}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS6ImVec2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"_ZTS16ImGuiMouseSource", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{!"_ZTS8ImVectorItE", !11, i64 0, !11, i64 4, !6, i64 8}
!18 = !{!10, !6, i64 144}
!19 = !{!7, !7, i64 0}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !11, i64 0}
!22 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !11, i64 0, !7, i64 4, !14, i64 36, !14, i64 37, !14, i64 38, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !23, i64 80, !23, i64 88, !14, i64 96, !14, i64 97, !14, i64 98}
!23 = !{!"long", !7, i64 0}
!24 = !{!22, !11, i64 40}
!25 = !{!22, !14, i64 38}
!26 = !{!22, !14, i64 37}
!27 = !{!22, !14, i64 98}
!28 = !{!10, !11, i64 4}
!29 = !{!22, !14, i64 36}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!22, !14, i64 96}
!33 = !{!22, !14, i64 97}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


; 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"

%union.ImGL3WProcs = type { [59 x ptr] }

@imgl3wProcs = external dso_local local_unnamed_addr global %union.ImGL3WProcs, align 8
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [87 x i8], align 1
@__PRETTY_FUNCTION__._Z22ImGui_ImplOpenGL3_InitPKc = external hidden unnamed_addr constant [42 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @imgl3wInit() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z22ImGui_ImplOpenGL3_InitPKc(ptr noundef readonly %0) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = tail call noundef nonnull align 8 dereferenceable(2976) ptr @_ZN5ImGui5GetIOEv()
  %7 = tail call noundef zeroext i1 @_ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm(ptr noundef nonnull @.str, i64 noundef 2976, i64 noundef 1156, i64 noundef 8, i64 noundef 16, i64 noundef 20, i64 noundef 2)
  %8 = getelementptr inbounds i8, ptr %6, i64 160
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = icmp eq ptr %9, null
  br i1 %10, label %12, label %11

11:                                               ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 284, ptr noundef nonnull @__PRETTY_FUNCTION__._Z22ImGui_ImplOpenGL3_InitPKc) #9
  unreachable

12:                                               ; preds = %1
  %13 = tail call i32 @imgl3wInit()
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %17, label %14

14:                                               ; preds = %12
  %15 = load ptr, ptr @stderr, align 8, !tbaa !17
  %16 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef nonnull @.str.4) #10
  br label %98

17:                                               ; preds = %12
  %18 = tail call noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef 104)
  %19 = tail call noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef 104, ptr noundef %18)
  tail call void @_ZN22ImGui_ImplOpenGL3_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(99) %19)
  store ptr %19, ptr %8, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %6, i64 144
  store ptr @.str.5, ptr %20, align 8, !tbaa !18
  %21 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 312), align 8, !tbaa !19
  %22 = tail call noundef ptr %21(i32 noundef 7938)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #11
  store i32 0, ptr %2, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #11
  store i32 0, ptr %3, align 4, !tbaa !20
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !19
  call void %23(i32 noundef 33307, ptr noundef nonnull %2)
  %24 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !19
  call void %24(i32 noundef 33308, ptr noundef nonnull %3)
  %25 = load i32, ptr %2, align 4, !tbaa !20
  %26 = icmp eq i32 %25, 0
  %27 = load i32, ptr %3, align 4
  %28 = icmp eq i32 %27, 0
  %or.cond = select i1 %26, i1 %28, i1 false
  br i1 %or.cond, label %29, label %31

29:                                               ; preds = %17
  %30 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %22, ptr noundef nonnull @.str.6, ptr noundef nonnull %2, ptr noundef nonnull %3) #11
  %.pre = load i32, ptr %2, align 4, !tbaa !20
  %.pre36 = load i32, ptr %3, align 4, !tbaa !20
  br label %31

31:                                               ; preds = %29, %17
  %32 = phi i32 [ %.pre36, %29 ], [ %27, %17 ]
  %33 = phi i32 [ %.pre, %29 ], [ %25, %17 ]
  %34 = mul nsw i32 %33, 100
  %35 = mul nsw i32 %32, 10
  %36 = add nsw i32 %35, %34
  store i32 %36, ptr %19, align 8, !tbaa !21
  %37 = icmp ugt i32 %36, 319
  br i1 %37, label %38, label %41

38:                                               ; preds = %31
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !19
  %40 = getelementptr inbounds i8, ptr %19, i64 40
  call void %39(i32 noundef 37158, ptr noundef nonnull %40)
  br label %41

41:                                               ; preds = %38, %31
  %42 = getelementptr inbounds i8, ptr %19, i64 40
  %43 = load i32, ptr %42, align 8, !tbaa !24
  %44 = getelementptr inbounds i8, ptr %19, i64 38
  %45 = trunc i32 %43 to i8
  %46 = lshr i8 %45, 1
  %47 = and i8 %46, 1
  store i8 %47, ptr %44, align 2, !tbaa !25
  %48 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %22, ptr noundef nonnull dereferenceable(1) @.str.7, i64 noundef 11) #12
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %41
  %51 = getelementptr inbounds i8, ptr %19, i64 37
  store i8 1, ptr %51, align 1, !tbaa !26
  br label %52

52:                                               ; preds = %50, %41
  %53 = getelementptr inbounds i8, ptr %19, i64 98
  store i8 0, ptr %53, align 2, !tbaa !27
  %54 = load i32, ptr %19, align 8, !tbaa !21
  %55 = icmp ugt i32 %54, 319
  br i1 %55, label %56, label %60

56:                                               ; preds = %52
  %57 = getelementptr inbounds i8, ptr %6, i64 4
  %58 = load i32, ptr %57, align 4, !tbaa !28
  %59 = or i32 %58, 8
  store i32 %59, ptr %57, align 4, !tbaa !28
  br label %60

60:                                               ; preds = %56, %52
  %61 = icmp eq ptr %0, null
  %spec.store.select = select i1 %61, ptr @.str.8, ptr %0
  %62 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %spec.store.select) #12
  %63 = trunc i64 %62 to i32
  %64 = icmp slt i32 %63, 30
  br i1 %64, label %66, label %65

65:                                               ; preds = %60
  call void @__assert_fail(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 362, ptr noundef nonnull @__PRETTY_FUNCTION__._Z22ImGui_ImplOpenGL3_InitPKc) #9
  unreachable

66:                                               ; preds = %60
  %67 = getelementptr inbounds i8, ptr %19, i64 4
  %68 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %67, ptr noundef nonnull dereferenceable(1) %spec.store.select) #11
  %69 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %67, ptr noundef nonnull dereferenceable(1) @.str.10) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #11
  %70 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !19
  call void %70(i32 noundef 32873, ptr noundef nonnull %4)
  %71 = getelementptr inbounds i8, ptr %19, i64 36
  %72 = load i8, ptr %71, align 4, !tbaa !29, !range !30, !noundef !31
  %73 = trunc nuw i8 %72 to i1
  br i1 %73, label %78, label %74

74:                                               ; preds = %66
  %75 = getelementptr inbounds i8, ptr %19, i64 37
  %76 = load i8, ptr %75, align 1, !tbaa !26, !range !30, !noundef !31
  %77 = xor i8 %76, 1
  br label %78

78:                                               ; preds = %74, %66
  %79 = phi i8 [ 0, %66 ], [ %77, %74 ]
  %80 = getelementptr inbounds i8, ptr %19, i64 96
  store i8 %79, ptr %80, align 8, !tbaa !32
  %81 = load i32, ptr %19, align 8, !tbaa !21
  %82 = icmp ugt i32 %81, 449
  %83 = getelementptr inbounds i8, ptr %19, i64 97
  %84 = zext i1 %82 to i8
  store i8 %84, ptr %83, align 1, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #11
  store i32 0, ptr %5, align 4, !tbaa !20
  %85 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !19
  call void %85(i32 noundef 33309, ptr noundef nonnull %5)
  %86 = load i32, ptr %5, align 4, !tbaa !20
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %94, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #11
  br label %98

.lr.ph:                                           ; preds = %78, %94
  %.03235 = phi i32 [ %95, %94 ], [ 0, %78 ]
  %88 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 320), align 8, !tbaa !19
  %89 = call noundef ptr %88(i32 noundef 7939, i32 noundef %.03235)
  %.not34 = icmp eq ptr %89, null
  br i1 %.not34, label %94, label %90

90:                                               ; preds = %.lr.ph
  %91 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %89, ptr noundef nonnull dereferenceable(1) @.str.11) #12
  %92 = icmp eq i32 %91, 0
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  store i8 1, ptr %83, align 1, !tbaa !33
  br label %94

94:                                               ; preds = %93, %90, %.lr.ph
  %95 = add nuw nsw i32 %.03235, 1
  %96 = load i32, ptr %5, align 4, !tbaa !20
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %.lr.ph, label %._crit_edge, !llvm.loop !34

98:                                               ; preds = %._crit_edge, %14
  ret i1 %.not
}

declare noundef nonnull align 8 dereferenceable(2976) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #2

declare noundef zeroext i1 @_ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm(ptr noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

declare noundef ptr @_ZN5ImGui8MemAllocEm(i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_Znwm12ImNewWrapperPv(i64 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN22ImGui_ImplOpenGL3_DataC2Ev(ptr noundef nonnull align 8 dereferenceable(99)) unnamed_addr #6 align 2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #8

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #8

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #7

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { noreturn 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 #4 = { 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 #5 = { 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 #6 = { 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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #8 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "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 #9 = { noreturn nounwind }
attributes #10 = { cold nounwind }
attributes #11 = { nounwind }
attributes #12 = { nounwind willreturn memory(read) }

!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, !12, i64 160}
!6 = !{!"_ZTS7ImGuiIO", !7, i64 0, !7, i64 4, !10, i64 8, !11, i64 16, !11, i64 20, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !11, i64 56, !13, i64 60, !12, i64 64, !10, i64 72, !13, i64 80, !13, i64 81, !13, i64 82, !13, i64 83, !13, i64 84, !13, i64 85, !13, i64 86, !13, i64 87, !13, i64 88, !13, i64 89, !13, i64 90, !13, i64 91, !13, i64 92, !13, i64 93, !13, i64 94, !13, i64 95, !13, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !13, i64 124, !13, i64 125, !13, i64 126, !13, i64 127, !13, i64 128, !13, i64 129, !13, i64 130, !13, i64 131, !13, i64 132, !13, i64 133, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !12, i64 168, !13, i64 176, !13, i64 177, !13, i64 178, !13, i64 179, !13, i64 180, !13, i64 181, !13, i64 182, !11, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !10, i64 204, !12, i64 216, !10, i64 224, !8, i64 232, !11, i64 240, !11, i64 244, !14, i64 248, !13, i64 252, !13, i64 253, !13, i64 254, !13, i64 255, !7, i64 256, !8, i64 260, !13, i64 2724, !10, i64 2728, !8, i64 2736, !8, i64 2776, !8, i64 2816, !8, i64 2821, !8, i64 2826, !8, i64 2836, !8, i64 2846, !8, i64 2851, !8, i64 2856, !13, i64 2861, !13, i64 2862, !8, i64 2864, !8, i64 2884, !8, i64 2904, !11, i64 2924, !13, i64 2928, !13, i64 2929, !15, i64 2930, !16, i64 2936, !12, i64 2952, !12, i64 2960, !12, i64 2968}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS6ImVec2", !11, i64 0, !11, i64 4}
!11 = !{!"float", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTS16ImGuiMouseSource", !8, i64 0}
!15 = !{!"short", !8, i64 0}
!16 = !{!"_ZTS8ImVectorItE", !7, i64 0, !7, i64 4, !12, i64 8}
!17 = !{!12, !12, i64 0}
!18 = !{!6, !12, i64 144}
!19 = !{!8, !8, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !7, i64 0}
!22 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !7, i64 0, !8, i64 4, !13, i64 36, !13, i64 37, !13, i64 38, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !23, i64 80, !23, i64 88, !13, i64 96, !13, i64 97, !13, i64 98}
!23 = !{!"long", !8, i64 0}
!24 = !{!22, !7, i64 40}
!25 = !{!22, !13, i64 38}
!26 = !{!22, !13, i64 37}
!27 = !{!22, !13, i64 98}
!28 = !{!6, !7, i64 4}
!29 = !{!22, !13, i64 36}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = !{!22, !13, i64 96}
!33 = !{!22, !13, i64 97}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass