; LLVM IR from Samson-Mano/EM_Propogation_simulation :: EM_Propogation_simulation/src/ImGui (imgui_impl_opengl3)

; 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.GL3WProcs = type { [59 x 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, [3 x i8], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i8, i8, [6 x i8] }>

@imgl3wProcs = external dso_local global %union.GL3WProcs, align 8
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [245 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [216 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [305 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [282 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [204 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [207 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [182 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [6 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(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav() #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z37ImGui_ImplOpenGL3_CreateDeviceObjectsv() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca [2 x ptr], align 16
  %17 = alloca i32, align 4
  %18 = alloca [2 x ptr], align 16
  %19 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  %20 = call noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav()
  store ptr %20, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #3
  %21 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !9
  call void %21(i32 noundef 32873, ptr noundef %2)
  %22 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !9
  call void %22(i32 noundef 34964, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  %23 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 34), align 8, !tbaa !9
  call void %23(i32 noundef 34229, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 130, ptr %5, align 4, !tbaa !10
  %24 = load ptr, ptr %1, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds [32 x i8], ptr %25, i64 0, i64 0
  %27 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %26, ptr noundef @.str.14, ptr noundef %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  store ptr @.str.15, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  store ptr @.str.16, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store ptr @.str.17, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store ptr @.str.18, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store ptr @.str.19, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store ptr @.str.20, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store ptr @.str.21, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store ptr @.str.22, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store ptr null, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store ptr null, ptr %15, align 8, !tbaa !5
  %28 = load i32, ptr %5, align 4, !tbaa !10
  %29 = icmp slt i32 %28, 130
  br i1 %29, label %30, label %33

30:                                               ; preds = %0
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %31, ptr %14, align 8, !tbaa !5
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %32, ptr %15, align 8, !tbaa !5
  br label %50

33:                                               ; preds = %0
  %34 = load i32, ptr %5, align 4, !tbaa !10
  %35 = icmp sge i32 %34, 410
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %37, ptr %14, align 8, !tbaa !5
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %38, ptr %15, align 8, !tbaa !5
  br label %49

39:                                               ; preds = %33
  %40 = load i32, ptr %5, align 4, !tbaa !10
  %41 = icmp eq i32 %40, 300
  br i1 %41, label %42, label %45

42:                                               ; preds = %39
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %43, ptr %14, align 8, !tbaa !5
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %44, ptr %15, align 8, !tbaa !5
  br label %48

45:                                               ; preds = %39
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %46, ptr %14, align 8, !tbaa !5
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %47, ptr %15, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %45, %42
  br label %49

49:                                               ; preds = %48, %36
  br label %50

50:                                               ; preds = %49, %30
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #3
  %51 = load ptr, ptr %1, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %51, i32 0, i32 1
  %53 = getelementptr inbounds [32 x i8], ptr %52, i64 0, i64 0
  store ptr %53, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds ptr, ptr %16, i64 1
  %55 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %55, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  %56 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 15), align 8, !tbaa !9
  %57 = call noundef i32 %56(i32 noundef 35633)
  store i32 %57, ptr %17, align 4, !tbaa !10
  %58 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 51), align 8, !tbaa !9
  %59 = load i32, ptr %17, align 4, !tbaa !10
  %60 = getelementptr inbounds [2 x ptr], ptr %16, i64 0, i64 0
  call void %58(i32 noundef %59, i32 noundef 2, ptr noundef %60, ptr noundef null)
  %61 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 13), align 8, !tbaa !9
  %62 = load i32, ptr %17, align 4, !tbaa !10
  call void %61(i32 noundef %62)
  %63 = load i32, ptr %17, align 4, !tbaa !10
  %64 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %63, ptr noundef @.str.23)
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #3
  %65 = load ptr, ptr %1, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %65, i32 0, i32 1
  %67 = getelementptr inbounds [32 x i8], ptr %66, i64 0, i64 0
  store ptr %67, ptr %18, align 8, !tbaa !5
  %68 = getelementptr inbounds ptr, ptr %18, i64 1
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %69, ptr %68, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %70 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 15), align 8, !tbaa !9
  %71 = call noundef i32 %70(i32 noundef 35632)
  store i32 %71, ptr %19, align 4, !tbaa !10
  %72 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 51), align 8, !tbaa !9
  %73 = load i32, ptr %19, align 4, !tbaa !10
  %74 = getelementptr inbounds [2 x ptr], ptr %18, i64 0, i64 0
  call void %72(i32 noundef %73, i32 noundef 2, ptr noundef %74, ptr noundef null)
  %75 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 13), align 8, !tbaa !9
  %76 = load i32, ptr %19, align 4, !tbaa !10
  call void %75(i32 noundef %76)
  %77 = load i32, ptr %19, align 4, !tbaa !10
  %78 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %77, ptr noundef @.str.24)
  %79 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 14), align 8, !tbaa !9
  %80 = call noundef i32 %79()
  %81 = load ptr, ptr %1, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %81, i32 0, i32 6
  store i32 %80, ptr %82, align 8, !tbaa !12
  %83 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 1), align 8, !tbaa !9
  %84 = load ptr, ptr %1, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %84, i32 0, i32 6
  %86 = load i32, ptr %85, align 8, !tbaa !12
  %87 = load i32, ptr %17, align 4, !tbaa !10
  call void %83(i32 noundef %86, i32 noundef %87)
  %88 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 1), align 8, !tbaa !9
  %89 = load ptr, ptr %1, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %90, align 8, !tbaa !12
  %92 = load i32, ptr %19, align 4, !tbaa !10
  call void %88(i32 noundef %91, i32 noundef %92)
  %93 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 46), align 8, !tbaa !9
  %94 = load ptr, ptr %1, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %94, i32 0, i32 6
  %96 = load i32, ptr %95, align 8, !tbaa !12
  call void %93(i32 noundef %96)
  %97 = load ptr, ptr %1, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %98, align 8, !tbaa !12
  %100 = call noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef %99, ptr noundef @.str.25)
  %101 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !9
  %102 = load ptr, ptr %1, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %103, align 8, !tbaa !12
  %105 = load i32, ptr %17, align 4, !tbaa !10
  call void %101(i32 noundef %104, i32 noundef %105)
  %106 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 21), align 8, !tbaa !9
  %107 = load ptr, ptr %1, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %107, i32 0, i32 6
  %109 = load i32, ptr %108, align 8, !tbaa !12
  %110 = load i32, ptr %19, align 4, !tbaa !10
  call void %106(i32 noundef %109, i32 noundef %110)
  %111 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 18), align 8, !tbaa !9
  %112 = load i32, ptr %17, align 4, !tbaa !10
  call void %111(i32 noundef %112)
  %113 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 18), align 8, !tbaa !9
  %114 = load i32, ptr %19, align 4, !tbaa !10
  call void %113(i32 noundef %114)
  %115 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 41), align 8, !tbaa !9
  %116 = load ptr, ptr %1, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %117, align 8, !tbaa !12
  %119 = call noundef i32 %115(i32 noundef %118, ptr noundef @.str.26)
  %120 = load ptr, ptr %1, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %120, i32 0, i32 7
  store i32 %119, ptr %121, align 4, !tbaa !16
  %122 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 41), align 8, !tbaa !9
  %123 = load ptr, ptr %1, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %124, align 8, !tbaa !12
  %126 = call noundef i32 %122(i32 noundef %125, ptr noundef @.str.27)
  %127 = load ptr, ptr %1, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %127, i32 0, i32 8
  store i32 %126, ptr %128, align 8, !tbaa !17
  %129 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 32), align 8, !tbaa !9
  %130 = load ptr, ptr %1, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %131, align 8, !tbaa !12
  %133 = call noundef i32 %129(i32 noundef %132, ptr noundef @.str.28)
  %134 = load ptr, ptr %1, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %134, i32 0, i32 9
  store i32 %133, ptr %135, align 4, !tbaa !18
  %136 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 32), align 8, !tbaa !9
  %137 = load ptr, ptr %1, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %137, i32 0, i32 6
  %139 = load i32, ptr %138, align 8, !tbaa !12
  %140 = call noundef i32 %136(i32 noundef %139, ptr noundef @.str.29)
  %141 = load ptr, ptr %1, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %141, i32 0, i32 10
  store i32 %140, ptr %142, align 8, !tbaa !19
  %143 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 32), align 8, !tbaa !9
  %144 = load ptr, ptr %1, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %145, align 8, !tbaa !12
  %147 = call noundef i32 %143(i32 noundef %146, ptr noundef @.str.30)
  %148 = load ptr, ptr %1, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %148, i32 0, i32 11
  store i32 %147, ptr %149, align 4, !tbaa !20
  %150 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 29), align 8, !tbaa !9
  %151 = load ptr, ptr %1, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %151, i32 0, i32 12
  call void %150(i32 noundef 1, ptr noundef %152)
  %153 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 29), align 8, !tbaa !9
  %154 = load ptr, ptr %1, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.ImGui_ImplOpenGL3_Data, ptr %154, i32 0, i32 13
  call void %153(i32 noundef 1, ptr noundef %155)
  %156 = call noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev()
  %157 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 4), align 8, !tbaa !9
  %158 = load i32, ptr %2, align 4, !tbaa !10
  call void %157(i32 noundef 3553, i32 noundef %158)
  %159 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 2), align 8, !tbaa !9
  %160 = load i32, ptr %3, align 4, !tbaa !10
  call void %159(i32 noundef 34962, i32 noundef %160)
  %161 = load ptr, ptr getelementptr inbounds (%struct.anon.0, ptr @imgl3wProcs, i32 0, i32 5), align 8, !tbaa !9
  %162 = load i32, ptr %4, align 4, !tbaa !10
  call void %161(i32 noundef %162)
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  ret i1 true
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev() #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 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 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 48}
!13 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !11, i64 0, !7, i64 4, !14, i64 36, !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, !15, i64 80, !15, i64 88, !14, i64 96, !14, i64 97}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!13, !11, i64 52}
!17 = !{!13, !11, i64 56}
!18 = !{!13, !11, i64 60}
!19 = !{!13, !11, i64 64}
!20 = !{!13, !11, i64 68}


; 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.GL3WProcs = type { [59 x ptr] }

@imgl3wProcs = external dso_local local_unnamed_addr global %union.GL3WProcs, align 8
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [245 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [216 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [305 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [282 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [204 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [160 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [207 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [182 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [6 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

; Function Attrs: mustprogress uwtable
declare hidden noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z37ImGui_ImplOpenGL3_CreateDeviceObjectsv() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [2 x ptr], align 16
  %6 = alloca [2 x ptr], align 16
  %7 = tail call noundef ptr @_ZL32ImGui_ImplOpenGL3_GetBackendDatav()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %8 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !5
  call void %8(i32 noundef 32873, ptr noundef nonnull %1)
  %9 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !5
  call void %9(i32 noundef 34964, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 272), align 8, !tbaa !5
  call void %10(i32 noundef 34229, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  store i32 130, ptr %4, align 4, !tbaa !8
  %11 = getelementptr inbounds i8, ptr %7, i64 4
  %12 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %11, ptr noundef nonnull @.str.14, ptr noundef nonnull %4) #3
  %13 = load i32, ptr %4, align 4, !tbaa !8
  %14 = icmp slt i32 %13, 130
  br i1 %14, label %19, label %15

15:                                               ; preds = %0
  %16 = icmp ugt i32 %13, 409
  br i1 %16, label %19, label %17

17:                                               ; preds = %15
  %18 = icmp eq i32 %13, 300
  %.str.21..str.20 = select i1 %18, ptr @.str.21, ptr @.str.20
  %.str.17..str.16 = select i1 %18, ptr @.str.17, ptr @.str.16
  br label %19

19:                                               ; preds = %17, %15, %0
  %.043 = phi ptr [ @.str.19, %0 ], [ @.str.22, %15 ], [ %.str.21..str.20, %17 ]
  %.0 = phi ptr [ @.str.15, %0 ], [ @.str.18, %15 ], [ %.str.17..str.16, %17 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #3
  store ptr %11, ptr %5, align 16, !tbaa !10
  %20 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %.0, ptr %20, align 8, !tbaa !10
  %21 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 120), align 8, !tbaa !5
  %22 = call noundef i32 %21(i32 noundef 35633)
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 408), align 8, !tbaa !5
  call void %23(i32 noundef %22, i32 noundef 2, ptr noundef nonnull %5, ptr noundef null)
  %24 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 104), align 8, !tbaa !5
  call void %24(i32 noundef %22)
  %25 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %22, ptr noundef nonnull @.str.23)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  store ptr %11, ptr %6, align 16, !tbaa !10
  %26 = getelementptr inbounds i8, ptr %6, i64 8
  store ptr %.043, ptr %26, align 8, !tbaa !10
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 120), align 8, !tbaa !5
  %28 = call noundef i32 %27(i32 noundef 35632)
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 408), align 8, !tbaa !5
  call void %29(i32 noundef %28, i32 noundef 2, ptr noundef nonnull %6, ptr noundef null)
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 104), align 8, !tbaa !5
  call void %30(i32 noundef %28)
  %31 = call noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef %28, ptr noundef nonnull @.str.24)
  %32 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 112), align 8, !tbaa !5
  %33 = call noundef i32 %32()
  %34 = getelementptr inbounds i8, ptr %7, i64 48
  store i32 %33, ptr %34, align 8, !tbaa !12
  %35 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 8), align 8, !tbaa !5
  call void %35(i32 noundef %33, i32 noundef %22)
  %36 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 8), align 8, !tbaa !5
  %37 = load i32, ptr %34, align 8, !tbaa !12
  call void %36(i32 noundef %37, i32 noundef %28)
  %38 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 368), align 8, !tbaa !5
  %39 = load i32, ptr %34, align 8, !tbaa !12
  call void %38(i32 noundef %39)
  %40 = load i32, ptr %34, align 8, !tbaa !12
  %41 = call noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef %40, ptr noundef nonnull @.str.25)
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8, !tbaa !5
  %43 = load i32, ptr %34, align 8, !tbaa !12
  call void %42(i32 noundef %43, i32 noundef %22)
  %44 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 168), align 8, !tbaa !5
  %45 = load i32, ptr %34, align 8, !tbaa !12
  call void %44(i32 noundef %45, i32 noundef %28)
  %46 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 144), align 8, !tbaa !5
  call void %46(i32 noundef %22)
  %47 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 144), align 8, !tbaa !5
  call void %47(i32 noundef %28)
  %48 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 328), align 8, !tbaa !5
  %49 = load i32, ptr %34, align 8, !tbaa !12
  %50 = call noundef i32 %48(i32 noundef %49, ptr noundef nonnull @.str.26)
  %51 = getelementptr inbounds i8, ptr %7, i64 52
  store i32 %50, ptr %51, align 4, !tbaa !16
  %52 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 328), align 8, !tbaa !5
  %53 = load i32, ptr %34, align 8, !tbaa !12
  %54 = call noundef i32 %52(i32 noundef %53, ptr noundef nonnull @.str.27)
  %55 = getelementptr inbounds i8, ptr %7, i64 56
  store i32 %54, ptr %55, align 8, !tbaa !17
  %56 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 256), align 8, !tbaa !5
  %57 = load i32, ptr %34, align 8, !tbaa !12
  %58 = call noundef i32 %56(i32 noundef %57, ptr noundef nonnull @.str.28)
  %59 = getelementptr inbounds i8, ptr %7, i64 60
  store i32 %58, ptr %59, align 4, !tbaa !18
  %60 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 256), align 8, !tbaa !5
  %61 = load i32, ptr %34, align 8, !tbaa !12
  %62 = call noundef i32 %60(i32 noundef %61, ptr noundef nonnull @.str.29)
  %63 = getelementptr inbounds i8, ptr %7, i64 64
  store i32 %62, ptr %63, align 8, !tbaa !19
  %64 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 256), align 8, !tbaa !5
  %65 = load i32, ptr %34, align 8, !tbaa !12
  %66 = call noundef i32 %64(i32 noundef %65, ptr noundef nonnull @.str.30)
  %67 = getelementptr inbounds i8, ptr %7, i64 68
  store i32 %66, ptr %67, align 4, !tbaa !20
  %68 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 232), align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %7, i64 72
  call void %68(i32 noundef 1, ptr noundef nonnull %69)
  %70 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 232), align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %7, i64 76
  call void %70(i32 noundef 1, ptr noundef nonnull %71)
  %72 = call noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev()
  %73 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 32), align 8, !tbaa !5
  %74 = load i32, ptr %1, align 4, !tbaa !8
  call void %73(i32 noundef 3553, i32 noundef %74)
  %75 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 16), align 8, !tbaa !5
  %76 = load i32, ptr %2, align 4, !tbaa !8
  call void %75(i32 noundef 34962, i32 noundef %76)
  %77 = load ptr, ptr getelementptr inbounds (i8, ptr @imgl3wProcs, i64 40), align 8, !tbaa !5
  %78 = load i32, ptr %3, align 4, !tbaa !8
  call void %77(i32 noundef %78)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #3
  ret i1 true
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z36ImGui_ImplOpenGL3_CreateFontsTexturev() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL11CheckShaderjPKc(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL12CheckProgramjPKc(i32 noundef, ptr noundef) local_unnamed_addr #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 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 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !6, i64 0}
!12 = !{!13, !9, i64 48}
!13 = !{!"_ZTS22ImGui_ImplOpenGL3_Data", !9, i64 0, !6, i64 4, !14, i64 36, !9, i64 40, !9, i64 44, !9, i64 48, !9, i64 52, !9, i64 56, !9, i64 60, !9, i64 64, !9, i64 68, !9, i64 72, !9, i64 76, !15, i64 80, !15, i64 88, !14, i64 96, !14, i64 97}
!14 = !{!"bool", !6, i64 0}
!15 = !{!"long", !6, i64 0}
!16 = !{!13, !9, i64 52}
!17 = !{!13, !9, i64 56}
!18 = !{!13, !9, i64 60}
!19 = !{!13, !9, i64 64}
!20 = !{!13, !9, i64 68}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass