; LLVM IR from jasonlmfong/Model-Modifier :: Model-Modifier/src/external/imgui (main)

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

%struct.ImVec4 = type { float, float, float, float }
%struct.ImVec2 = type { float, float }
%struct.ImGuiIO = type { i32, i32, %struct.ImVec2, float, float, ptr, ptr, float, float, float, float, float, float, float, ptr, ptr, float, i8, ptr, %struct.ImVec2, i8, i8, i8, i8, i8, i8, i8, i8, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i8, i8, i8, i8, i8, i8, i8, float, i32, i32, i32, i32, i32, %struct.ImVec2, [652 x i32], [652 x i8], [16 x float], %struct.ImVec2, [5 x i8], float, float, i8, i8, i8, i8, i32, [652 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], [5 x float], [5 x float], [5 x float], float, i8, i8, i8, i8, i16, %struct.ImVector }
%struct.ImGuiKeyData = type { i8, float, float, float }
%struct.ImVector = type { i32, i32, ptr }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZZ4mainE1f = external hidden global float, align 4
@_ZZ4mainE7counter = external hidden global i32, align 4
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  %12 = alloca %struct.ImVec4, align 4
  %13 = alloca %struct.ImVec2, align 4
  %14 = alloca %struct.ImVec2, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %17 = call ptr @glfwSetErrorCallback(ptr noundef @_ZL19glfw_error_callbackiPKc)
  %18 = call i32 @glfwInit()
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %21, label %20

20:                                               ; preds = %2
  store i32 1, ptr %3, align 4
  br label %99

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr @.str, ptr %6, align 8, !tbaa !9
  call void @glfwWindowHint(i32 noundef 139266, i32 noundef 3)
  call void @glfwWindowHint(i32 noundef 139267, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %22 = call ptr @glfwCreateWindow(i32 noundef 1280, i32 noundef 720, ptr noundef @.str.1, ptr noundef null, ptr noundef null)
  store ptr %22, ptr %7, align 8, !tbaa !9
  %23 = load ptr, ptr %7, align 8, !tbaa !9
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %26

25:                                               ; preds = %21
  store i32 1, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %98

26:                                               ; preds = %21
  %27 = load ptr, ptr %7, align 8, !tbaa !9
  call void @glfwMakeContextCurrent(ptr noundef %27)
  call void @glfwSwapInterval(i32 noundef 1)
  %28 = call noundef zeroext i1 @_ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm(ptr noundef @.str.2, i64 noundef 14264, i64 noundef 1068, i64 noundef 8, i64 noundef 16, i64 noundef 20, i64 noundef 2)
  %29 = call noundef ptr @_ZN5ImGui13CreateContextEP11ImFontAtlas(ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %30 = call noundef nonnull align 8 dereferenceable(14264) ptr @_ZN5ImGui5GetIOEv()
  store ptr %30, ptr %9, align 8, !tbaa !9
  %31 = load ptr, ptr %9, align 8, !tbaa !9
  call void @_ZN5ImGui15StyleColorsDarkEP10ImGuiStyle(ptr noundef null)
  %32 = load ptr, ptr %7, align 8, !tbaa !9
  %33 = call noundef zeroext i1 @_Z28ImGui_ImplGlfw_InitForOpenGLP10GLFWwindowb(ptr noundef %32, i1 noundef zeroext true)
  %34 = load ptr, ptr %6, align 8, !tbaa !9
  %35 = call noundef zeroext i1 @_Z22ImGui_ImplOpenGL3_InitPKc(ptr noundef %34)
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #4
  store i8 1, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  store i8 0, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %12, float noundef 0x3FDCCCCCC0000000, float noundef 0x3FE19999A0000000, float noundef 0x3FE3333340000000, float noundef 1.000000e+00)
  br label %36

36:                                               ; preds = %73, %26
  %37 = load ptr, ptr %7, align 8, !tbaa !9
  %38 = call i32 @glfwWindowShouldClose(ptr noundef %37)
  %39 = icmp ne i32 %38, 0
  %40 = xor i1 %39, true
  br i1 %40, label %41, label %96

41:                                               ; preds = %36
  call void @glfwPollEvents()
  call void @_Z26ImGui_ImplOpenGL3_NewFramev()
  call void @_Z23ImGui_ImplGlfw_NewFramev()
  call void @_ZN5ImGui8NewFrameEv()
  %42 = load i8, ptr %10, align 1, !tbaa !11, !range !13, !noundef !14
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  call void @_ZN5ImGui14ShowDemoWindowEPb(ptr noundef %10)
  br label %45

45:                                               ; preds = %44, %41
  %46 = call noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef @.str.3, ptr noundef null, i32 noundef 0)
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef @.str.4)
  %47 = call noundef zeroext i1 @_ZN5ImGui8CheckboxEPKcPb(ptr noundef @.str.5, ptr noundef %10)
  %48 = call noundef zeroext i1 @_ZN5ImGui8CheckboxEPKcPb(ptr noundef @.str.6, ptr noundef %11)
  %49 = call noundef zeroext i1 @_ZN5ImGui11SliderFloatEPKcPfffS1_i(ptr noundef @.str.7, ptr noundef @_ZZ4mainE1f, float noundef 0.000000e+00, float noundef 1.000000e+00, ptr noundef @.str.8, i32 noundef 0)
  %50 = call noundef zeroext i1 @_ZN5ImGui10ColorEdit3EPKcPfi(ptr noundef @.str.9, ptr noundef %12, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %13, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %51 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef @.str.10, ptr noundef nonnull align 4 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br i1 %51, label %52, label %55

52:                                               ; preds = %45
  %53 = load i32, ptr @_ZZ4mainE7counter, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr @_ZZ4mainE7counter, align 4, !tbaa !5
  br label %55

55:                                               ; preds = %52, %45
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %56 = load i32, ptr @_ZZ4mainE7counter, align 4, !tbaa !5
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef @.str.11, i32 noundef %56)
  %57 = call noundef nonnull align 8 dereferenceable(14264) ptr @_ZN5ImGui5GetIOEv()
  %58 = getelementptr inbounds %struct.ImGuiIO, ptr %57, i32 0, i32 46
  %59 = load float, ptr %58, align 8, !tbaa !15
  %60 = fdiv float 1.000000e+03, %59
  %61 = fpext float %60 to double
  %62 = call noundef nonnull align 8 dereferenceable(14264) ptr @_ZN5ImGui5GetIOEv()
  %63 = getelementptr inbounds %struct.ImGuiIO, ptr %62, i32 0, i32 46
  %64 = load float, ptr %63, align 8, !tbaa !15
  %65 = fpext float %64 to double
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef @.str.12, double noundef %61, double noundef %65)
  call void @_ZN5ImGui3EndEv()
  %66 = load i8, ptr %11, align 1, !tbaa !11, !range !13, !noundef !14
  %67 = trunc i8 %66 to i1
  br i1 %67, label %68, label %73

68:                                               ; preds = %55
  %69 = call noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef @.str.6, ptr noundef %11, i32 noundef 0)
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef @.str.13)
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %14, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %70 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef @.str.14, ptr noundef nonnull align 4 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %72

72:                                               ; preds = %71, %68
  call void @_ZN5ImGui3EndEv()
  br label %73

73:                                               ; preds = %72, %55
  call void @_ZN5ImGui6RenderEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %74 = load ptr, ptr %7, align 8, !tbaa !9
  call void @glfwGetFramebufferSize(ptr noundef %74, ptr noundef %15, ptr noundef %16)
  %75 = load i32, ptr %15, align 4, !tbaa !5
  %76 = load i32, ptr %16, align 4, !tbaa !5
  call void @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %75, i32 noundef %76)
  %77 = getelementptr inbounds %struct.ImVec4, ptr %12, i32 0, i32 0
  %78 = load float, ptr %77, align 4, !tbaa !21
  %79 = getelementptr inbounds %struct.ImVec4, ptr %12, i32 0, i32 3
  %80 = load float, ptr %79, align 4, !tbaa !23
  %81 = fmul float %78, %80
  %82 = getelementptr inbounds %struct.ImVec4, ptr %12, i32 0, i32 1
  %83 = load float, ptr %82, align 4, !tbaa !24
  %84 = getelementptr inbounds %struct.ImVec4, ptr %12, i32 0, i32 3
  %85 = load float, ptr %84, align 4, !tbaa !23
  %86 = fmul float %83, %85
  %87 = getelementptr inbounds %struct.ImVec4, ptr %12, i32 0, i32 2
  %88 = load float, ptr %87, align 4, !tbaa !25
  %89 = getelementptr inbounds %struct.ImVec4, ptr %12, i32 0, i32 3
  %90 = load float, ptr %89, align 4, !tbaa !23
  %91 = fmul float %88, %90
  %92 = getelementptr inbounds %struct.ImVec4, ptr %12, i32 0, i32 3
  %93 = load float, ptr %92, align 4, !tbaa !23
  call void @glClearColor(float noundef %81, float noundef %86, float noundef %91, float noundef %93)
  call void @glClear(i32 noundef 16384)
  %94 = call noundef ptr @_ZN5ImGui11GetDrawDataEv()
  call void @_Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef %94)
  %95 = load ptr, ptr %7, align 8, !tbaa !9
  call void @glfwSwapBuffers(ptr noundef %95)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %36, !llvm.loop !26

96:                                               ; preds = %36
  call void @_Z26ImGui_ImplOpenGL3_Shutdownv()
  call void @_Z23ImGui_ImplGlfw_Shutdownv()
  call void @_ZN5ImGui14DestroyContextEP12ImGuiContext(ptr noundef null)
  %97 = load ptr, ptr %7, align 8, !tbaa !9
  call void @glfwDestroyWindow(ptr noundef %97)
  call void @glfwTerminate()
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %98

98:                                               ; preds = %96, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %99

99:                                               ; preds = %98, %20
  %100 = load i32, ptr %3, align 4
  ret i32 %100
}

declare ptr @glfwSetErrorCallback(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL19glfw_error_callbackiPKc(i32 noundef, ptr noundef) #2

declare i32 @glfwInit() #1

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

declare void @glfwWindowHint(i32 noundef, i32 noundef) #1

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @glfwMakeContextCurrent(ptr noundef) #1

declare void @glfwSwapInterval(i32 noundef) #1

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

declare noundef ptr @_ZN5ImGui13CreateContextEP11ImFontAtlas(ptr noundef) #1

declare noundef nonnull align 8 dereferenceable(14264) ptr @_ZN5ImGui5GetIOEv() #1

declare void @_ZN5ImGui15StyleColorsDarkEP10ImGuiStyle(ptr noundef) #1

declare noundef zeroext i1 @_Z28ImGui_ImplGlfw_InitForOpenGLP10GLFWwindowb(ptr noundef, i1 noundef zeroext) #1

declare noundef zeroext i1 @_Z22ImGui_ImplOpenGL3_InitPKc(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #2 align 2

declare i32 @glfwWindowShouldClose(ptr noundef) #1

declare void @glfwPollEvents() #1

declare void @_Z26ImGui_ImplOpenGL3_NewFramev() #1

declare void @_Z23ImGui_ImplGlfw_NewFramev() #1

declare void @_ZN5ImGui8NewFrameEv() #1

declare void @_ZN5ImGui14ShowDemoWindowEPb(ptr noundef) #1

declare noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef, ptr noundef, i32 noundef) #1

declare void @_ZN5ImGui4TextEPKcz(ptr noundef, ...) #1

declare noundef zeroext i1 @_ZN5ImGui8CheckboxEPKcPb(ptr noundef, ptr noundef) #1

declare noundef zeroext i1 @_ZN5ImGui11SliderFloatEPKcPfffS1_i(ptr noundef, ptr noundef, float noundef, float noundef, ptr noundef, i32 noundef) #1

declare noundef zeroext i1 @_ZN5ImGui10ColorEdit3EPKcPfi(ptr noundef, ptr noundef, i32 noundef) #1

declare noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

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

declare void @_ZN5ImGui8SameLineEff(float noundef, float noundef) #1

declare void @_ZN5ImGui3EndEv() #1

declare void @_ZN5ImGui6RenderEv() #1

declare void @glfwGetFramebufferSize(ptr noundef, ptr noundef, ptr noundef) #1

declare void @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare void @glClearColor(float noundef, float noundef, float noundef, float noundef) #1

declare void @glClear(i32 noundef) #1

declare void @_Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef) #1

declare noundef ptr @_ZN5ImGui11GetDrawDataEv() #1

declare void @glfwSwapBuffers(ptr noundef) #1

declare void @_Z26ImGui_ImplOpenGL3_Shutdownv() #1

declare void @_Z23ImGui_ImplGlfw_Shutdownv() #1

declare void @_ZN5ImGui14DestroyContextEP12ImGuiContext(ptr noundef) #1

declare void @glfwDestroyWindow(ptr noundef) #1

declare void @glfwTerminate() #1

attributes #0 = { mustprogress norecurse 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 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !18, i64 216}
!16 = !{!"_ZTS7ImGuiIO", !6, i64 0, !6, i64 4, !17, i64 8, !18, i64 16, !18, i64 20, !10, i64 24, !10, i64 32, !18, i64 40, !18, i64 44, !18, i64 48, !18, i64 52, !18, i64 56, !18, i64 60, !18, i64 64, !10, i64 72, !10, i64 80, !18, i64 88, !12, i64 92, !10, i64 96, !17, i64 104, !12, i64 112, !12, i64 113, !12, i64 114, !12, i64 115, !12, i64 116, !12, i64 117, !12, i64 118, !12, i64 119, !18, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !10, i64 168, !10, i64 176, !10, i64 184, !10, i64 192, !10, i64 200, !12, i64 208, !12, i64 209, !12, i64 210, !12, i64 211, !12, i64 212, !12, i64 213, !12, i64 214, !18, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236, !17, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !17, i64 3572, !7, i64 3580, !18, i64 3588, !18, i64 3592, !12, i64 3596, !12, i64 3597, !12, i64 3598, !12, i64 3599, !6, i64 3600, !7, i64 3604, !12, i64 14036, !17, i64 14040, !7, i64 14048, !7, i64 14088, !7, i64 14128, !7, i64 14133, !7, i64 14138, !7, i64 14148, !7, i64 14158, !7, i64 14163, !7, i64 14168, !7, i64 14176, !7, i64 14196, !7, i64 14216, !18, i64 14236, !12, i64 14240, !12, i64 14241, !7, i64 14242, !12, i64 14243, !19, i64 14244, !20, i64 14248}
!17 = !{!"_ZTS6ImVec2", !18, i64 0, !18, i64 4}
!18 = !{!"float", !7, i64 0}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTS8ImVectorItE", !6, i64 0, !6, i64 4, !10, i64 8}
!21 = !{!22, !18, i64 0}
!22 = !{!"_ZTS6ImVec4", !18, i64 0, !18, i64 4, !18, i64 8, !18, i64 12}
!23 = !{!22, !18, i64 12}
!24 = !{!22, !18, i64 4}
!25 = !{!22, !18, i64 8}
!26 = distinct !{!26, !27}
!27 = !{!"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"

%struct.ImVec4 = type { float, float, float, float }
%struct.ImVec2 = type { float, float }

@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1
@_ZZ4mainE1f = external hidden global float, align 4
@_ZZ4mainE7counter = external hidden local_unnamed_addr global i32, align 4
@.str.3 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca %struct.ImVec4, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = tail call ptr @glfwSetErrorCallback(ptr noundef nonnull @_ZL19glfw_error_callbackiPKc)
  %11 = tail call i32 @glfwInit()
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %69, label %12

12:                                               ; preds = %2
  tail call void @glfwWindowHint(i32 noundef 139266, i32 noundef 3)
  tail call void @glfwWindowHint(i32 noundef 139267, i32 noundef 0)
  %13 = tail call ptr @glfwCreateWindow(i32 noundef 1280, i32 noundef 720, ptr noundef nonnull @.str.1, ptr noundef null, ptr noundef null)
  %14 = icmp eq ptr %13, null
  br i1 %14, label %69, label %15

15:                                               ; preds = %12
  tail call void @glfwMakeContextCurrent(ptr noundef nonnull %13)
  tail call void @glfwSwapInterval(i32 noundef 1)
  %16 = tail call noundef zeroext i1 @_ZN5ImGui30DebugCheckVersionAndDataLayoutEPKcmmmmmm(ptr noundef nonnull @.str.2, i64 noundef 14264, i64 noundef 1068, i64 noundef 8, i64 noundef 16, i64 noundef 20, i64 noundef 2)
  %17 = tail call noundef ptr @_ZN5ImGui13CreateContextEP11ImFontAtlas(ptr noundef null)
  %18 = tail call noundef nonnull align 8 dereferenceable(14264) ptr @_ZN5ImGui5GetIOEv()
  tail call void @_ZN5ImGui15StyleColorsDarkEP10ImGuiStyle(ptr noundef null)
  %19 = tail call noundef zeroext i1 @_Z28ImGui_ImplGlfw_InitForOpenGLP10GLFWwindowb(ptr noundef nonnull %13, i1 noundef zeroext true)
  %20 = tail call noundef zeroext i1 @_Z22ImGui_ImplOpenGL3_InitPKc(ptr noundef nonnull @.str)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  store i8 1, ptr %3, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #4
  store i8 0, ptr %4, align 1, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #4
  call void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef 0x3FDCCCCCC0000000, float noundef 0x3FE19999A0000000, float noundef 0x3FE3333340000000, float noundef 1.000000e+00)
  %21 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %13)
  %.not1011 = icmp eq i32 %21, 0
  br i1 %.not1011, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %15
  %22 = getelementptr inbounds i8, ptr %5, i64 12
  %23 = getelementptr inbounds i8, ptr %5, i64 4
  %24 = getelementptr inbounds i8, ptr %5, i64 8
  br label %25

25:                                               ; preds = %.lr.ph, %57
  call void @glfwPollEvents()
  call void @_Z26ImGui_ImplOpenGL3_NewFramev()
  call void @_Z23ImGui_ImplGlfw_NewFramev()
  call void @_ZN5ImGui8NewFrameEv()
  %26 = load i8, ptr %3, align 1, !tbaa !5, !range !9, !noundef !10
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  call void @_ZN5ImGui14ShowDemoWindowEPb(ptr noundef nonnull %3)
  br label %29

29:                                               ; preds = %28, %25
  %30 = call noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef nonnull @.str.3, ptr noundef null, i32 noundef 0)
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef nonnull @.str.4)
  %31 = call noundef zeroext i1 @_ZN5ImGui8CheckboxEPKcPb(ptr noundef nonnull @.str.5, ptr noundef nonnull %3)
  %32 = call noundef zeroext i1 @_ZN5ImGui8CheckboxEPKcPb(ptr noundef nonnull @.str.6, ptr noundef nonnull %4)
  %33 = call noundef zeroext i1 @_ZN5ImGui11SliderFloatEPKcPfffS1_i(ptr noundef nonnull @.str.7, ptr noundef nonnull @_ZZ4mainE1f, float noundef 0.000000e+00, float noundef 1.000000e+00, ptr noundef nonnull @.str.8, i32 noundef 0)
  %34 = call noundef zeroext i1 @_ZN5ImGui10ColorEdit3EPKcPfi(ptr noundef nonnull @.str.9, ptr noundef nonnull %5, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %35 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef nonnull @.str.10, ptr noundef nonnull align 4 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  br i1 %35, label %36, label %39

36:                                               ; preds = %29
  %37 = load i32, ptr @_ZZ4mainE7counter, align 4, !tbaa !11
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr @_ZZ4mainE7counter, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %36, %29
  call void @_ZN5ImGui8SameLineEff(float noundef 0.000000e+00, float noundef -1.000000e+00)
  %40 = load i32, ptr @_ZZ4mainE7counter, align 4, !tbaa !11
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef nonnull @.str.11, i32 noundef %40)
  %41 = call noundef nonnull align 8 dereferenceable(14264) ptr @_ZN5ImGui5GetIOEv()
  %42 = getelementptr inbounds i8, ptr %41, i64 216
  %43 = load float, ptr %42, align 8, !tbaa !13
  %44 = fdiv float 1.000000e+03, %43
  %45 = fpext float %44 to double
  %46 = call noundef nonnull align 8 dereferenceable(14264) ptr @_ZN5ImGui5GetIOEv()
  %47 = getelementptr inbounds i8, ptr %46, i64 216
  %48 = load float, ptr %47, align 8, !tbaa !13
  %49 = fpext float %48 to double
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef nonnull @.str.12, double noundef %45, double noundef %49)
  call void @_ZN5ImGui3EndEv()
  %50 = load i8, ptr %4, align 1, !tbaa !5, !range !9, !noundef !10
  %51 = trunc nuw i8 %50 to i1
  br i1 %51, label %52, label %57

52:                                               ; preds = %39
  %53 = call noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef nonnull @.str.6, ptr noundef nonnull %4, i32 noundef 0)
  call void (ptr, ...) @_ZN5ImGui4TextEPKcz(ptr noundef nonnull @.str.13)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %54 = call noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef nonnull @.str.14, ptr noundef nonnull align 4 dereferenceable(8) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  store i8 0, ptr %4, align 1, !tbaa !5
  br label %56

56:                                               ; preds = %55, %52
  call void @_ZN5ImGui3EndEv()
  br label %57

57:                                               ; preds = %56, %39
  call void @_ZN5ImGui6RenderEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #4
  call void @glfwGetFramebufferSize(ptr noundef nonnull %13, ptr noundef nonnull %8, ptr noundef nonnull %9)
  %58 = load i32, ptr %8, align 4, !tbaa !11
  %59 = load i32, ptr %9, align 4, !tbaa !11
  call void @glViewport(i32 noundef 0, i32 noundef 0, i32 noundef %58, i32 noundef %59)
  %60 = load float, ptr %5, align 4, !tbaa !20
  %61 = load float, ptr %22, align 4, !tbaa !22
  %62 = fmul float %60, %61
  %63 = load float, ptr %23, align 4, !tbaa !23
  %64 = fmul float %61, %63
  %65 = load float, ptr %24, align 4, !tbaa !24
  %66 = fmul float %61, %65
  call void @glClearColor(float noundef %62, float noundef %64, float noundef %66, float noundef %61)
  call void @glClear(i32 noundef 16384)
  %67 = call noundef ptr @_ZN5ImGui11GetDrawDataEv()
  call void @_Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef %67)
  call void @glfwSwapBuffers(ptr noundef nonnull %13)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  %68 = call i32 @glfwWindowShouldClose(ptr noundef nonnull %13)
  %.not10 = icmp eq i32 %68, 0
  br i1 %.not10, label %25, label %._crit_edge, !llvm.loop !25

._crit_edge:                                      ; preds = %57, %15
  call void @_Z26ImGui_ImplOpenGL3_Shutdownv()
  call void @_Z23ImGui_ImplGlfw_Shutdownv()
  call void @_ZN5ImGui14DestroyContextEP12ImGuiContext(ptr noundef null)
  call void @glfwDestroyWindow(ptr noundef nonnull %13)
  call void @glfwTerminate()
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  br label %69

69:                                               ; preds = %._crit_edge, %12, %2
  %.1 = phi i32 [ 1, %2 ], [ 0, %._crit_edge ], [ 1, %12 ]
  ret i32 %.1
}

declare ptr @glfwSetErrorCallback(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL19glfw_error_callbackiPKc(i32 noundef, ptr noundef) #2

declare i32 @glfwInit() local_unnamed_addr #1

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

declare void @glfwWindowHint(i32 noundef, i32 noundef) local_unnamed_addr #1

declare ptr @glfwCreateWindow(i32 noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @glfwMakeContextCurrent(ptr noundef) local_unnamed_addr #1

declare void @glfwSwapInterval(i32 noundef) local_unnamed_addr #1

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

declare noundef ptr @_ZN5ImGui13CreateContextEP11ImFontAtlas(ptr noundef) local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(14264) ptr @_ZN5ImGui5GetIOEv() local_unnamed_addr #1

declare void @_ZN5ImGui15StyleColorsDarkEP10ImGuiStyle(ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_Z28ImGui_ImplGlfw_InitForOpenGLP10GLFWwindowb(ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

declare noundef zeroext i1 @_Z22ImGui_ImplOpenGL3_InitPKc(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec4C2Effff(ptr noundef nonnull align 4 dereferenceable(16), float noundef, float noundef, float noundef, float noundef) unnamed_addr #2 align 2

declare i32 @glfwWindowShouldClose(ptr noundef) local_unnamed_addr #1

declare void @glfwPollEvents() local_unnamed_addr #1

declare void @_Z26ImGui_ImplOpenGL3_NewFramev() local_unnamed_addr #1

declare void @_Z23ImGui_ImplGlfw_NewFramev() local_unnamed_addr #1

declare void @_ZN5ImGui8NewFrameEv() local_unnamed_addr #1

declare void @_ZN5ImGui14ShowDemoWindowEPb(ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN5ImGui5BeginEPKcPbi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare void @_ZN5ImGui4TextEPKcz(ptr noundef, ...) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN5ImGui8CheckboxEPKcPb(ptr noundef, ptr noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN5ImGui11SliderFloatEPKcPfffS1_i(ptr noundef, ptr noundef, float noundef, float noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN5ImGui10ColorEdit3EPKcPfi(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare noundef zeroext i1 @_ZN5ImGui6ButtonEPKcRK6ImVec2(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #2 align 2

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

declare void @_ZN5ImGui8SameLineEff(float noundef, float noundef) local_unnamed_addr #1

declare void @_ZN5ImGui3EndEv() local_unnamed_addr #1

declare void @_ZN5ImGui6RenderEv() local_unnamed_addr #1

declare void @glfwGetFramebufferSize(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @glViewport(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @glClearColor(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

declare void @glClear(i32 noundef) local_unnamed_addr #1

declare void @_Z32ImGui_ImplOpenGL3_RenderDrawDataP10ImDrawData(ptr noundef) local_unnamed_addr #1

declare noundef ptr @_ZN5ImGui11GetDrawDataEv() local_unnamed_addr #1

declare void @glfwSwapBuffers(ptr noundef) local_unnamed_addr #1

declare void @_Z26ImGui_ImplOpenGL3_Shutdownv() local_unnamed_addr #1

declare void @_Z23ImGui_ImplGlfw_Shutdownv() local_unnamed_addr #1

declare void @_ZN5ImGui14DestroyContextEP12ImGuiContext(ptr noundef) local_unnamed_addr #1

declare void @glfwDestroyWindow(ptr noundef) local_unnamed_addr #1

declare void @glfwTerminate() local_unnamed_addr #1

attributes #0 = { mustprogress norecurse 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 = { "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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i8 0, i8 2}
!10 = !{}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !16, i64 216}
!14 = !{!"_ZTS7ImGuiIO", !12, i64 0, !12, i64 4, !15, i64 8, !16, i64 16, !16, i64 20, !17, i64 24, !17, i64 32, !16, i64 40, !16, i64 44, !16, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !17, i64 72, !17, i64 80, !16, i64 88, !6, i64 92, !17, i64 96, !15, i64 104, !6, i64 112, !6, i64 113, !6, i64 114, !6, i64 115, !6, i64 116, !6, i64 117, !6, i64 118, !6, i64 119, !16, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168, !17, i64 176, !17, i64 184, !17, i64 192, !17, i64 200, !6, i64 208, !6, i64 209, !6, i64 210, !6, i64 211, !6, i64 212, !6, i64 213, !6, i64 214, !16, i64 216, !12, i64 220, !12, i64 224, !12, i64 228, !12, i64 232, !12, i64 236, !15, i64 240, !7, i64 248, !7, i64 2856, !7, i64 3508, !15, i64 3572, !7, i64 3580, !16, i64 3588, !16, i64 3592, !6, i64 3596, !6, i64 3597, !6, i64 3598, !6, i64 3599, !12, i64 3600, !7, i64 3604, !6, i64 14036, !15, i64 14040, !7, i64 14048, !7, i64 14088, !7, i64 14128, !7, i64 14133, !7, i64 14138, !7, i64 14148, !7, i64 14158, !7, i64 14163, !7, i64 14168, !7, i64 14176, !7, i64 14196, !7, i64 14216, !16, i64 14236, !6, i64 14240, !6, i64 14241, !7, i64 14242, !6, i64 14243, !18, i64 14244, !19, i64 14248}
!15 = !{!"_ZTS6ImVec2", !16, i64 0, !16, i64 4}
!16 = !{!"float", !7, i64 0}
!17 = !{!"any pointer", !7, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !17, i64 8}
!20 = !{!21, !16, i64 0}
!21 = !{!"_ZTS6ImVec4", !16, i64 0, !16, i64 4, !16, i64 8, !16, i64 12}
!22 = !{!21, !16, i64 12}
!23 = !{!21, !16, i64 4}
!24 = !{!21, !16, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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