; LLVM IR from NotManyIdeasDev/double-pendulum-sim :: double-pendulum-sim/Libraries/raygui-2.8/examples/image_exporter (image_exporter)

; 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.Rectangle = type { float, float, float, float }
%struct.Texture = type { i32, i32, i32, i32, i32 }
%struct.Image = type { ptr, i32, i32, i32, i32 }
%struct.Color = type { i8, i8, i8, i8 }
%struct.Vector2 = type { float, float }

@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@__const.main.windowBoxRec = external hidden unnamed_addr constant %struct.Rectangle, align 4
@__const.main.fileFormatTextList = external hidden unnamed_addr constant [3 x ptr], align 16
@__const.main.pixelFormatTextList = external hidden unnamed_addr constant [7 x ptr], align 16
@__const.main.fileName = external hidden unnamed_addr constant [32 x i8], align 16
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @GuiEnable() #0

; Function Attrs: nounwind uwtable
declare dso_local void @GuiDisable() #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @GuiWindowBox(<2 x float>, <2 x float>, ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @GuiButton(<2 x float>, <2 x float>, ptr noundef) #3

declare i32 @Fade(i32, float noundef) #4

declare i32 @GetColor(i32 noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: nounwind uwtable
declare dso_local void @GuiLabel(<2 x float>, <2 x float>, ptr noundef) #3

declare <2 x float> @GetMousePosition() #4

declare zeroext i1 @CheckCollisionPointRec(<2 x float>, <2 x float>, <2 x float>) #4

declare float @GetMouseWheelMove() #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

; Function Attrs: nounwind uwtable
declare dso_local i32 @GuiComboBox(<2 x float>, <2 x float>, ptr noundef, i32 noundef) #3

declare ptr @TextFormat(ptr noundef, ...) #4

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @GuiTextBox(<2 x float>, <2 x float>, ptr noundef, i32 noundef, i1 noundef zeroext) #3

declare noalias ptr @fopen(ptr noundef, ptr noundef) #4

declare i32 @fclose(ptr noundef) #4

declare void @LoadTextureFromImage(ptr dead_on_unwind writable sret(%struct.Texture) align 4, ptr noundef byval(%struct.Image) align 8) #4

declare void @UnloadImage(ptr noundef byval(%struct.Image) align 8) #4

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #3 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.Rectangle, align 4
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca [3 x ptr], align 16
  %12 = alloca i32, align 4
  %13 = alloca [7 x ptr], align 16
  %14 = alloca i8, align 1
  %15 = alloca [32 x i8], align 16
  %16 = alloca %struct.Image, align 8
  %17 = alloca %struct.Texture, align 8
  %18 = alloca i8, align 1
  %19 = alloca float, align 4
  %20 = alloca %struct.Rectangle, align 4
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %struct.Image, align 8
  %25 = alloca %struct.Texture, align 4
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca %struct.Rectangle, align 4
  %29 = alloca %struct.Color, align 1
  %30 = alloca %struct.Vector2, align 4
  %31 = alloca %struct.Color, align 1
  %32 = alloca %struct.Color, align 1
  %33 = alloca %struct.Vector2, align 4
  %34 = alloca %struct.Color, align 1
  %35 = alloca %struct.Color, align 1
  %36 = alloca %struct.Rectangle, align 4
  %37 = alloca %struct.Color, align 1
  %38 = alloca %struct.Color, align 1
  %39 = alloca %struct.Rectangle, align 4
  %40 = alloca %struct.Rectangle, align 4
  %41 = alloca %struct.Rectangle, align 4
  %42 = alloca %struct.Rectangle, align 4
  %43 = alloca %struct.Rectangle, align 4
  %44 = alloca %struct.Rectangle, align 4
  %45 = alloca %struct.Rectangle, align 4
  %46 = alloca %struct.Rectangle, align 4
  %47 = alloca %struct.Color, align 1
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 800, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  store i32 450, ptr %7, align 4, !tbaa !5
  call void @InitWindow(i32 noundef 800, i32 noundef 450, ptr noundef @.str.10)
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 @__const.main.windowBoxRec, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #8
  store i8 0, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.fileFormatTextList, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %13) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %13, ptr align 16 @__const.main.pixelFormatTextList, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #8
  store i8 0, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %15, ptr align 16 @__const.main.fileName, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @llvm.memset.p0.i64(ptr align 8 %16, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr %17) #8
  call void @llvm.memset.p0.i64(ptr align 4 %17, i8 0, i64 20, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  store i8 0, ptr %18, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store float 1.000000e+00, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @llvm.memset.p0.i64(ptr align 4 %20, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #8
  store i8 0, ptr %21, align 1, !tbaa !11
  call void @SetTargetFPS(i32 noundef 60)
  br label %48

48:                                               ; preds = %427, %2
  %49 = call zeroext i1 @WindowShouldClose()
  %50 = xor i1 %49, true
  br i1 %50, label %51, label %428

51:                                               ; preds = %48
  %52 = call zeroext i1 @IsFileDropped()
  br i1 %52, label %53, label %86

53:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %54 = call ptr @GetDroppedFiles(ptr noundef %22)
  store ptr %54, ptr %23, align 8, !tbaa !9
  %55 = load i32, ptr %22, align 4, !tbaa !5
  %56 = icmp eq i32 %55, 1
  br i1 %56, label %57, label %85

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #8
  %58 = load ptr, ptr %23, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i64 0
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  call void @LoadImage(ptr dead_on_unwind writable sret(%struct.Image) align 8 %24, ptr noundef %60)
  %61 = getelementptr inbounds %struct.Image, ptr %24, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !15
  %63 = icmp ne ptr %62, null
  br i1 %63, label %64, label %84

64:                                               ; preds = %57
  call void @UnloadImage(ptr noundef byval(%struct.Image) align 8 %16)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %24, i64 24, i1 false), !tbaa.struct !17
  call void @UnloadTexture(ptr noundef byval(%struct.Texture) align 8 %17)
  call void @llvm.lifetime.start.p0(i64 20, ptr %25) #8
  call void @LoadTextureFromImage(ptr dead_on_unwind writable sret(%struct.Texture) align 4 %25, ptr noundef byval(%struct.Image) align 8 %16)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 4 %25, i64 20, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 20, ptr %25) #8
  store i8 1, ptr %18, align 1, !tbaa !11
  %65 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 4
  %66 = load i32, ptr %65, align 4, !tbaa !19
  %67 = sub nsw i32 %66, 1
  store i32 %67, ptr %12, align 4, !tbaa !5
  %68 = getelementptr inbounds %struct.Texture, ptr %17, i32 0, i32 2
  %69 = load i32, ptr %68, align 4, !tbaa !20
  %70 = getelementptr inbounds %struct.Texture, ptr %17, i32 0, i32 1
  %71 = load i32, ptr %70, align 4, !tbaa !22
  %72 = icmp sgt i32 %69, %71
  br i1 %72, label %73, label %78

73:                                               ; preds = %64
  %74 = getelementptr inbounds %struct.Texture, ptr %17, i32 0, i32 2
  %75 = load i32, ptr %74, align 4, !tbaa !20
  %76 = sitofp i32 %75 to float
  %77 = fdiv float 3.500000e+02, %76
  store float %77, ptr %19, align 4, !tbaa !13
  br label %83

78:                                               ; preds = %64
  %79 = getelementptr inbounds %struct.Texture, ptr %17, i32 0, i32 1
  %80 = load i32, ptr %79, align 4, !tbaa !22
  %81 = sitofp i32 %80 to float
  %82 = fdiv float 7.000000e+02, %81
  store float %82, ptr %19, align 4, !tbaa !13
  br label %83

83:                                               ; preds = %78, %73
  br label %84

84:                                               ; preds = %83, %57
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #8
  br label %85

85:                                               ; preds = %84, %53
  call void @ClearDroppedFiles()
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %86

86:                                               ; preds = %85, %51
  %87 = load i8, ptr %21, align 1, !tbaa !11, !range !23, !noundef !24
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %151

89:                                               ; preds = %86
  %90 = load i8, ptr %18, align 1, !tbaa !11, !range !23, !noundef !24
  %91 = trunc i8 %90 to i1
  br i1 %91, label %92, label %150

92:                                               ; preds = %89
  %93 = load i32, ptr %12, align 4, !tbaa !5
  %94 = add nsw i32 %93, 1
  call void @ImageFormat(ptr noundef %16, i32 noundef %94)
  %95 = load i32, ptr %10, align 4, !tbaa !5
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %110

97:                                               ; preds = %92
  %98 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %99 = call ptr @GetFileExtension(ptr noundef %98)
  %100 = icmp eq ptr %99, null
  br i1 %100, label %104, label %101

101:                                              ; preds = %97
  %102 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %103 = call zeroext i1 @IsFileExtension(ptr noundef %102, ptr noundef @.str.21)
  br i1 %103, label %107, label %104

104:                                              ; preds = %101, %97
  %105 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %106 = call ptr @strcat(ptr noundef %105, ptr noundef @.str.22) #8
  br label %107

107:                                              ; preds = %104, %101
  %108 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %109 = call zeroext i1 @ExportImage(ptr noundef byval(%struct.Image) align 8 %16, ptr noundef %108)
  br label %149

110:                                              ; preds = %92
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = icmp eq i32 %111, 1
  br i1 %112, label %113, label %141

113:                                              ; preds = %110
  %114 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %115 = call ptr @GetFileExtension(ptr noundef %114)
  %116 = icmp eq ptr %115, null
  br i1 %116, label %120, label %117

117:                                              ; preds = %113
  %118 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %119 = call zeroext i1 @IsFileExtension(ptr noundef %118, ptr noundef @.str.23)
  br i1 %119, label %123, label %120

120:                                              ; preds = %117, %113
  %121 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %122 = call ptr @strcat(ptr noundef %121, ptr noundef @.str.24) #8
  br label %123

123:                                              ; preds = %120, %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %124 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 1
  %125 = load i32, ptr %124, align 8, !tbaa !25
  %126 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 2
  %127 = load i32, ptr %126, align 4, !tbaa !26
  %128 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 4
  %129 = load i32, ptr %128, align 4, !tbaa !19
  %130 = call i32 @GetPixelDataSize(i32 noundef %125, i32 noundef %127, i32 noundef %129)
  store i32 %130, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %131 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %132 = call noalias ptr @fopen(ptr noundef %131, ptr noundef @.str.25)
  store ptr %132, ptr %27, align 8, !tbaa !9
  %133 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8, !tbaa !15
  %135 = load i32, ptr %26, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = load ptr, ptr %27, align 8, !tbaa !9
  %138 = call i64 @fwrite(ptr noundef %134, i64 noundef %136, i64 noundef 1, ptr noundef %137)
  %139 = load ptr, ptr %27, align 8, !tbaa !9
  %140 = call i32 @fclose(ptr noundef %139)
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %148

141:                                              ; preds = %110
  %142 = load i32, ptr %10, align 4, !tbaa !5
  %143 = icmp eq i32 %142, 2
  br i1 %143, label %144, label %147

144:                                              ; preds = %141
  %145 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %146 = call zeroext i1 @ExportImageAsCode(ptr noundef byval(%struct.Image) align 8 %16, ptr noundef %145)
  br label %147

147:                                              ; preds = %144, %141
  br label %148

148:                                              ; preds = %147, %123
  br label %149

149:                                              ; preds = %148, %107
  br label %150

150:                                              ; preds = %149, %89
  store i8 0, ptr %9, align 1, !tbaa !11
  br label %151

151:                                              ; preds = %150, %86
  %152 = load i8, ptr %18, align 1, !tbaa !11, !range !23, !noundef !24
  %153 = trunc i8 %152 to i1
  br i1 %153, label %154, label %195

154:                                              ; preds = %151
  %155 = call float @GetMouseWheelMove()
  %156 = load float, ptr %19, align 4, !tbaa !13
  %157 = call float @llvm.fmuladd.f32(float %155, float 0x3FA99999A0000000, float %156)
  store float %157, ptr %19, align 4, !tbaa !13
  %158 = load float, ptr %19, align 4, !tbaa !13
  %159 = fcmp ole float %158, 0x3FB99999A0000000
  br i1 %159, label %160, label %161

160:                                              ; preds = %154
  store float 0x3FB99999A0000000, ptr %19, align 4, !tbaa !13
  br label %166

161:                                              ; preds = %154
  %162 = load float, ptr %19, align 4, !tbaa !13
  %163 = fcmp oge float %162, 5.000000e+00
  br i1 %163, label %164, label %165

164:                                              ; preds = %161
  store float 5.000000e+00, ptr %19, align 4, !tbaa !13
  br label %165

165:                                              ; preds = %164, %161
  br label %166

166:                                              ; preds = %165, %160
  %167 = getelementptr inbounds %struct.Rectangle, ptr %28, i32 0, i32 0
  %168 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 1
  %169 = load i32, ptr %168, align 8, !tbaa !25
  %170 = sitofp i32 %169 to float
  %171 = load float, ptr %19, align 4, !tbaa !13
  %172 = fmul float %170, %171
  %173 = fdiv float %172, 2.000000e+00
  %174 = fsub float 4.000000e+02, %173
  store float %174, ptr %167, align 4, !tbaa !27
  %175 = getelementptr inbounds %struct.Rectangle, ptr %28, i32 0, i32 1
  %176 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 2
  %177 = load i32, ptr %176, align 4, !tbaa !26
  %178 = sitofp i32 %177 to float
  %179 = load float, ptr %19, align 4, !tbaa !13
  %180 = fmul float %178, %179
  %181 = fdiv float %180, 2.000000e+00
  %182 = fsub float 2.250000e+02, %181
  store float %182, ptr %175, align 4, !tbaa !29
  %183 = getelementptr inbounds %struct.Rectangle, ptr %28, i32 0, i32 2
  %184 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 1
  %185 = load i32, ptr %184, align 8, !tbaa !25
  %186 = sitofp i32 %185 to float
  %187 = load float, ptr %19, align 4, !tbaa !13
  %188 = fmul float %186, %187
  store float %188, ptr %183, align 4, !tbaa !30
  %189 = getelementptr inbounds %struct.Rectangle, ptr %28, i32 0, i32 3
  %190 = getelementptr inbounds %struct.Image, ptr %16, i32 0, i32 2
  %191 = load i32, ptr %190, align 4, !tbaa !26
  %192 = sitofp i32 %191 to float
  %193 = load float, ptr %19, align 4, !tbaa !13
  %194 = fmul float %192, %193
  store float %194, ptr %189, align 4, !tbaa !31
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %28, i64 16, i1 false), !tbaa.struct !32
  br label %195

195:                                              ; preds = %166, %151
  call void @BeginDrawing()
  %196 = getelementptr inbounds %struct.Color, ptr %29, i32 0, i32 0
  store i8 -11, ptr %196, align 1, !tbaa !33
  %197 = getelementptr inbounds %struct.Color, ptr %29, i32 0, i32 1
  store i8 -11, ptr %197, align 1, !tbaa !35
  %198 = getelementptr inbounds %struct.Color, ptr %29, i32 0, i32 2
  store i8 -11, ptr %198, align 1, !tbaa !36
  %199 = getelementptr inbounds %struct.Color, ptr %29, i32 0, i32 3
  store i8 -1, ptr %199, align 1, !tbaa !37
  %200 = load i32, ptr %29, align 1
  call void @ClearBackground(i32 %200)
  %201 = getelementptr inbounds %struct.Texture, ptr %17, i32 0, i32 0
  %202 = load i32, ptr %201, align 4, !tbaa !38
  %203 = icmp ugt i32 %202, 0
  br i1 %203, label %204, label %258

204:                                              ; preds = %195
  %205 = getelementptr inbounds %struct.Vector2, ptr %30, i32 0, i32 0
  %206 = getelementptr inbounds %struct.Texture, ptr %17, i32 0, i32 1
  %207 = load i32, ptr %206, align 4, !tbaa !22
  %208 = sitofp i32 %207 to float
  %209 = load float, ptr %19, align 4, !tbaa !13
  %210 = fmul float %208, %209
  %211 = fdiv float %210, 2.000000e+00
  %212 = fsub float 4.000000e+02, %211
  store float %212, ptr %205, align 4, !tbaa !39
  %213 = getelementptr inbounds %struct.Vector2, ptr %30, i32 0, i32 1
  %214 = getelementptr inbounds %struct.Texture, ptr %17, i32 0, i32 2
  %215 = load i32, ptr %214, align 4, !tbaa !20
  %216 = sitofp i32 %215 to float
  %217 = load float, ptr %19, align 4, !tbaa !13
  %218 = fmul float %216, %217
  %219 = fdiv float %218, 2.000000e+00
  %220 = fsub float 2.250000e+02, %219
  store float %220, ptr %213, align 4, !tbaa !41
  %221 = load float, ptr %19, align 4, !tbaa !13
  %222 = getelementptr inbounds %struct.Color, ptr %31, i32 0, i32 0
  store i8 -1, ptr %222, align 1, !tbaa !33
  %223 = getelementptr inbounds %struct.Color, ptr %31, i32 0, i32 1
  store i8 -1, ptr %223, align 1, !tbaa !35
  %224 = getelementptr inbounds %struct.Color, ptr %31, i32 0, i32 2
  store i8 -1, ptr %224, align 1, !tbaa !36
  %225 = getelementptr inbounds %struct.Color, ptr %31, i32 0, i32 3
  store i8 -1, ptr %225, align 1, !tbaa !37
  %226 = load <2 x float>, ptr %30, align 4
  %227 = load i32, ptr %31, align 1
  call void @DrawTextureEx(ptr noundef byval(%struct.Texture) align 8 %17, <2 x float> %226, float noundef 0.000000e+00, float noundef %221, i32 %227)
  %228 = call <2 x float> @GetMousePosition()
  store <2 x float> %228, ptr %33, align 4
  %229 = load <2 x float>, ptr %33, align 4
  %230 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 0
  %231 = load <2 x float>, ptr %230, align 4
  %232 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 1
  %233 = load <2 x float>, ptr %232, align 4
  %234 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %229, <2 x float> %231, <2 x float> %233)
  br i1 %234, label %235, label %240

235:                                              ; preds = %204
  %236 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 0
  store i8 -26, ptr %236, align 1, !tbaa !33
  %237 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 1
  store i8 41, ptr %237, align 1, !tbaa !35
  %238 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 2
  store i8 55, ptr %238, align 1, !tbaa !36
  %239 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 3
  store i8 -1, ptr %239, align 1, !tbaa !37
  br label %245

240:                                              ; preds = %204
  %241 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 0
  store i8 80, ptr %241, align 1, !tbaa !33
  %242 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 1
  store i8 80, ptr %242, align 1, !tbaa !35
  %243 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 2
  store i8 80, ptr %243, align 1, !tbaa !36
  %244 = getelementptr inbounds %struct.Color, ptr %32, i32 0, i32 3
  store i8 -1, ptr %244, align 1, !tbaa !37
  br label %245

245:                                              ; preds = %240, %235
  %246 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 0
  %247 = load <2 x float>, ptr %246, align 4
  %248 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %20, i32 0, i32 1
  %249 = load <2 x float>, ptr %248, align 4
  %250 = load i32, ptr %32, align 1
  call void @DrawRectangleLinesEx(<2 x float> %247, <2 x float> %249, i32 noundef 1, i32 %250)
  %251 = load float, ptr %19, align 4, !tbaa !13
  %252 = fmul float %251, 1.000000e+02
  %253 = fpext float %252 to double
  %254 = call ptr (ptr, ...) @TextFormat(ptr noundef @.str.26, double noundef %253)
  %255 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 18)
  %256 = call i32 @GetColor(i32 noundef %255)
  store i32 %256, ptr %34, align 1
  %257 = load i32, ptr %34, align 1
  call void @DrawText(ptr noundef %254, i32 noundef 20, i32 noundef 410, i32 noundef 20, i32 %257)
  br label %264

258:                                              ; preds = %195
  %259 = getelementptr inbounds %struct.Color, ptr %35, i32 0, i32 0
  store i8 80, ptr %259, align 1, !tbaa !33
  %260 = getelementptr inbounds %struct.Color, ptr %35, i32 0, i32 1
  store i8 80, ptr %260, align 1, !tbaa !35
  %261 = getelementptr inbounds %struct.Color, ptr %35, i32 0, i32 2
  store i8 80, ptr %261, align 1, !tbaa !36
  %262 = getelementptr inbounds %struct.Color, ptr %35, i32 0, i32 3
  store i8 -1, ptr %262, align 1, !tbaa !37
  %263 = load i32, ptr %35, align 1
  call void @DrawText(ptr noundef @.str.27, i32 noundef 350, i32 noundef 200, i32 noundef 10, i32 %263)
  call void @GuiDisable()
  br label %264

264:                                              ; preds = %258, %245
  %265 = getelementptr inbounds %struct.Rectangle, ptr %36, i32 0, i32 0
  store float 6.300000e+02, ptr %265, align 4, !tbaa !27
  %266 = getelementptr inbounds %struct.Rectangle, ptr %36, i32 0, i32 1
  store float 4.000000e+02, ptr %266, align 4, !tbaa !29
  %267 = getelementptr inbounds %struct.Rectangle, ptr %36, i32 0, i32 2
  store float 1.500000e+02, ptr %267, align 4, !tbaa !30
  %268 = getelementptr inbounds %struct.Rectangle, ptr %36, i32 0, i32 3
  store float 3.000000e+01, ptr %268, align 4, !tbaa !31
  %269 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 0
  %270 = load <2 x float>, ptr %269, align 4
  %271 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %36, i32 0, i32 1
  %272 = load <2 x float>, ptr %271, align 4
  %273 = call zeroext i1 @GuiButton(<2 x float> %270, <2 x float> %272, ptr noundef @.str.28)
  br i1 %273, label %274, label %275

274:                                              ; preds = %264
  store i8 1, ptr %9, align 1, !tbaa !11
  br label %275

275:                                              ; preds = %274, %264
  call void @GuiEnable()
  %276 = load i8, ptr %9, align 1, !tbaa !11, !range !23, !noundef !24
  %277 = trunc i8 %276 to i1
  br i1 %277, label %278, label %417

278:                                              ; preds = %275
  %279 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 19)
  %280 = call i32 @GetColor(i32 noundef %279)
  store i32 %280, ptr %38, align 1
  %281 = load i32, ptr %38, align 1
  %282 = call i32 @Fade(i32 %281, float noundef 0x3FE6666660000000)
  store i32 %282, ptr %37, align 1
  %283 = load i32, ptr %37, align 1
  call void @DrawRectangle(i32 noundef 0, i32 noundef 0, i32 noundef 800, i32 noundef 450, i32 %283)
  %284 = getelementptr inbounds %struct.Rectangle, ptr %39, i32 0, i32 0
  %285 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %286 = load float, ptr %285, align 4, !tbaa !27
  store float %286, ptr %284, align 4, !tbaa !27
  %287 = getelementptr inbounds %struct.Rectangle, ptr %39, i32 0, i32 1
  %288 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %289 = load float, ptr %288, align 4, !tbaa !29
  store float %289, ptr %287, align 4, !tbaa !29
  %290 = getelementptr inbounds %struct.Rectangle, ptr %39, i32 0, i32 2
  store float 2.200000e+02, ptr %290, align 4, !tbaa !30
  %291 = getelementptr inbounds %struct.Rectangle, ptr %39, i32 0, i32 3
  store float 1.900000e+02, ptr %291, align 4, !tbaa !31
  %292 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %39, i32 0, i32 0
  %293 = load <2 x float>, ptr %292, align 4
  %294 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %39, i32 0, i32 1
  %295 = load <2 x float>, ptr %294, align 4
  %296 = call zeroext i1 @GuiWindowBox(<2 x float> %293, <2 x float> %295, ptr noundef @.str.29)
  %297 = xor i1 %296, true
  %298 = zext i1 %297 to i8
  store i8 %298, ptr %9, align 1, !tbaa !11
  %299 = getelementptr inbounds %struct.Rectangle, ptr %40, i32 0, i32 0
  %300 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %301 = load float, ptr %300, align 4, !tbaa !27
  %302 = fadd float %301, 1.000000e+01
  store float %302, ptr %299, align 4, !tbaa !27
  %303 = getelementptr inbounds %struct.Rectangle, ptr %40, i32 0, i32 1
  %304 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %305 = load float, ptr %304, align 4, !tbaa !29
  %306 = fadd float %305, 3.500000e+01
  store float %306, ptr %303, align 4, !tbaa !29
  %307 = getelementptr inbounds %struct.Rectangle, ptr %40, i32 0, i32 2
  store float 6.000000e+01, ptr %307, align 4, !tbaa !30
  %308 = getelementptr inbounds %struct.Rectangle, ptr %40, i32 0, i32 3
  store float 2.500000e+01, ptr %308, align 4, !tbaa !31
  %309 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 0
  %310 = load <2 x float>, ptr %309, align 4
  %311 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %40, i32 0, i32 1
  %312 = load <2 x float>, ptr %311, align 4
  call void @GuiLabel(<2 x float> %310, <2 x float> %312, ptr noundef @.str.30)
  %313 = getelementptr inbounds %struct.Rectangle, ptr %41, i32 0, i32 0
  %314 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %315 = load float, ptr %314, align 4, !tbaa !27
  %316 = fadd float %315, 8.000000e+01
  store float %316, ptr %313, align 4, !tbaa !27
  %317 = getelementptr inbounds %struct.Rectangle, ptr %41, i32 0, i32 1
  %318 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %319 = load float, ptr %318, align 4, !tbaa !29
  %320 = fadd float %319, 3.500000e+01
  store float %320, ptr %317, align 4, !tbaa !29
  %321 = getelementptr inbounds %struct.Rectangle, ptr %41, i32 0, i32 2
  store float 1.300000e+02, ptr %321, align 4, !tbaa !30
  %322 = getelementptr inbounds %struct.Rectangle, ptr %41, i32 0, i32 3
  store float 2.500000e+01, ptr %322, align 4, !tbaa !31
  %323 = getelementptr inbounds [3 x ptr], ptr %11, i64 0, i64 0
  %324 = call ptr @TextJoin(ptr noundef %323, i32 noundef 3, ptr noundef @.str.31)
  %325 = load i32, ptr %10, align 4, !tbaa !5
  %326 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 0
  %327 = load <2 x float>, ptr %326, align 4
  %328 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %41, i32 0, i32 1
  %329 = load <2 x float>, ptr %328, align 4
  %330 = call i32 @GuiComboBox(<2 x float> %327, <2 x float> %329, ptr noundef %324, i32 noundef %325)
  store i32 %330, ptr %10, align 4, !tbaa !5
  %331 = getelementptr inbounds %struct.Rectangle, ptr %42, i32 0, i32 0
  %332 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %333 = load float, ptr %332, align 4, !tbaa !27
  %334 = fadd float %333, 1.000000e+01
  store float %334, ptr %331, align 4, !tbaa !27
  %335 = getelementptr inbounds %struct.Rectangle, ptr %42, i32 0, i32 1
  %336 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %337 = load float, ptr %336, align 4, !tbaa !29
  %338 = fadd float %337, 7.000000e+01
  store float %338, ptr %335, align 4, !tbaa !29
  %339 = getelementptr inbounds %struct.Rectangle, ptr %42, i32 0, i32 2
  store float 6.300000e+01, ptr %339, align 4, !tbaa !30
  %340 = getelementptr inbounds %struct.Rectangle, ptr %42, i32 0, i32 3
  store float 2.500000e+01, ptr %340, align 4, !tbaa !31
  %341 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 0
  %342 = load <2 x float>, ptr %341, align 4
  %343 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %42, i32 0, i32 1
  %344 = load <2 x float>, ptr %343, align 4
  call void @GuiLabel(<2 x float> %342, <2 x float> %344, ptr noundef @.str.32)
  %345 = getelementptr inbounds %struct.Rectangle, ptr %43, i32 0, i32 0
  %346 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %347 = load float, ptr %346, align 4, !tbaa !27
  %348 = fadd float %347, 8.000000e+01
  store float %348, ptr %345, align 4, !tbaa !27
  %349 = getelementptr inbounds %struct.Rectangle, ptr %43, i32 0, i32 1
  %350 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %351 = load float, ptr %350, align 4, !tbaa !29
  %352 = fadd float %351, 7.000000e+01
  store float %352, ptr %349, align 4, !tbaa !29
  %353 = getelementptr inbounds %struct.Rectangle, ptr %43, i32 0, i32 2
  store float 1.300000e+02, ptr %353, align 4, !tbaa !30
  %354 = getelementptr inbounds %struct.Rectangle, ptr %43, i32 0, i32 3
  store float 2.500000e+01, ptr %354, align 4, !tbaa !31
  %355 = getelementptr inbounds [7 x ptr], ptr %13, i64 0, i64 0
  %356 = call ptr @TextJoin(ptr noundef %355, i32 noundef 7, ptr noundef @.str.31)
  %357 = load i32, ptr %12, align 4, !tbaa !5
  %358 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 0
  %359 = load <2 x float>, ptr %358, align 4
  %360 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %43, i32 0, i32 1
  %361 = load <2 x float>, ptr %360, align 4
  %362 = call i32 @GuiComboBox(<2 x float> %359, <2 x float> %361, ptr noundef %356, i32 noundef %357)
  store i32 %362, ptr %12, align 4, !tbaa !5
  %363 = getelementptr inbounds %struct.Rectangle, ptr %44, i32 0, i32 0
  %364 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %365 = load float, ptr %364, align 4, !tbaa !27
  %366 = fadd float %365, 1.000000e+01
  store float %366, ptr %363, align 4, !tbaa !27
  %367 = getelementptr inbounds %struct.Rectangle, ptr %44, i32 0, i32 1
  %368 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %369 = load float, ptr %368, align 4, !tbaa !29
  %370 = fadd float %369, 1.050000e+02
  store float %370, ptr %367, align 4, !tbaa !29
  %371 = getelementptr inbounds %struct.Rectangle, ptr %44, i32 0, i32 2
  store float 5.000000e+01, ptr %371, align 4, !tbaa !30
  %372 = getelementptr inbounds %struct.Rectangle, ptr %44, i32 0, i32 3
  store float 2.500000e+01, ptr %372, align 4, !tbaa !31
  %373 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %44, i32 0, i32 0
  %374 = load <2 x float>, ptr %373, align 4
  %375 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %44, i32 0, i32 1
  %376 = load <2 x float>, ptr %375, align 4
  call void @GuiLabel(<2 x float> %374, <2 x float> %376, ptr noundef @.str.33)
  %377 = getelementptr inbounds %struct.Rectangle, ptr %45, i32 0, i32 0
  %378 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %379 = load float, ptr %378, align 4, !tbaa !27
  %380 = fadd float %379, 8.000000e+01
  store float %380, ptr %377, align 4, !tbaa !27
  %381 = getelementptr inbounds %struct.Rectangle, ptr %45, i32 0, i32 1
  %382 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %383 = load float, ptr %382, align 4, !tbaa !29
  %384 = fadd float %383, 1.050000e+02
  store float %384, ptr %381, align 4, !tbaa !29
  %385 = getelementptr inbounds %struct.Rectangle, ptr %45, i32 0, i32 2
  store float 1.300000e+02, ptr %385, align 4, !tbaa !30
  %386 = getelementptr inbounds %struct.Rectangle, ptr %45, i32 0, i32 3
  store float 2.500000e+01, ptr %386, align 4, !tbaa !31
  %387 = getelementptr inbounds [32 x i8], ptr %15, i64 0, i64 0
  %388 = load i8, ptr %14, align 1, !tbaa !11, !range !23, !noundef !24
  %389 = trunc i8 %388 to i1
  %390 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %45, i32 0, i32 0
  %391 = load <2 x float>, ptr %390, align 4
  %392 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %45, i32 0, i32 1
  %393 = load <2 x float>, ptr %392, align 4
  %394 = call zeroext i1 @GuiTextBox(<2 x float> %391, <2 x float> %393, ptr noundef %387, i32 noundef 64, i1 noundef zeroext %389)
  br i1 %394, label %395, label %400

395:                                              ; preds = %278
  %396 = load i8, ptr %14, align 1, !tbaa !11, !range !23, !noundef !24
  %397 = trunc i8 %396 to i1
  %398 = xor i1 %397, true
  %399 = zext i1 %398 to i8
  store i8 %399, ptr %14, align 1, !tbaa !11
  br label %400

400:                                              ; preds = %395, %278
  %401 = getelementptr inbounds %struct.Rectangle, ptr %46, i32 0, i32 0
  %402 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 0
  %403 = load float, ptr %402, align 4, !tbaa !27
  %404 = fadd float %403, 1.000000e+01
  store float %404, ptr %401, align 4, !tbaa !27
  %405 = getelementptr inbounds %struct.Rectangle, ptr %46, i32 0, i32 1
  %406 = getelementptr inbounds %struct.Rectangle, ptr %8, i32 0, i32 1
  %407 = load float, ptr %406, align 4, !tbaa !29
  %408 = fadd float %407, 1.450000e+02
  store float %408, ptr %405, align 4, !tbaa !29
  %409 = getelementptr inbounds %struct.Rectangle, ptr %46, i32 0, i32 2
  store float 2.000000e+02, ptr %409, align 4, !tbaa !30
  %410 = getelementptr inbounds %struct.Rectangle, ptr %46, i32 0, i32 3
  store float 3.000000e+01, ptr %410, align 4, !tbaa !31
  %411 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %46, i32 0, i32 0
  %412 = load <2 x float>, ptr %411, align 4
  %413 = getelementptr inbounds { <2 x float>, <2 x float> }, ptr %46, i32 0, i32 1
  %414 = load <2 x float>, ptr %413, align 4
  %415 = call zeroext i1 @GuiButton(<2 x float> %412, <2 x float> %414, ptr noundef @.str.34)
  %416 = zext i1 %415 to i8
  store i8 %416, ptr %21, align 1, !tbaa !11
  br label %418

417:                                              ; preds = %275
  store i8 0, ptr %21, align 1, !tbaa !11
  br label %418

418:                                              ; preds = %417, %400
  %419 = load i8, ptr %21, align 1, !tbaa !11, !range !23, !noundef !24
  %420 = trunc i8 %419 to i1
  br i1 %420, label %421, label %427

421:                                              ; preds = %418
  %422 = getelementptr inbounds %struct.Color, ptr %47, i32 0, i32 0
  store i8 -26, ptr %422, align 1, !tbaa !33
  %423 = getelementptr inbounds %struct.Color, ptr %47, i32 0, i32 1
  store i8 41, ptr %423, align 1, !tbaa !35
  %424 = getelementptr inbounds %struct.Color, ptr %47, i32 0, i32 2
  store i8 55, ptr %424, align 1, !tbaa !36
  %425 = getelementptr inbounds %struct.Color, ptr %47, i32 0, i32 3
  store i8 -1, ptr %425, align 1, !tbaa !37
  %426 = load i32, ptr %47, align 1
  call void @DrawText(ptr noundef @.str.35, i32 noundef 20, i32 noundef 430, i32 noundef 20, i32 %426)
  br label %427

427:                                              ; preds = %421, %418
  call void @EndDrawing()
  br label %48, !llvm.loop !42

428:                                              ; preds = %48
  call void @UnloadImage(ptr noundef byval(%struct.Image) align 8 %16)
  call void @UnloadTexture(ptr noundef byval(%struct.Texture) align 8 %17)
  call void @CloseWindow()
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  ret i32 0
}

declare void @InitWindow(i32 noundef, i32 noundef, ptr noundef) #4

declare void @SetTargetFPS(i32 noundef) #4

declare zeroext i1 @WindowShouldClose() #4

declare zeroext i1 @IsFileDropped() #4

declare ptr @GetDroppedFiles(ptr noundef) #4

declare void @LoadImage(ptr dead_on_unwind writable sret(%struct.Image) align 8, ptr noundef) #4

declare void @UnloadTexture(ptr noundef byval(%struct.Texture) align 8) #4

declare void @ClearDroppedFiles() #4

declare void @ImageFormat(ptr noundef, i32 noundef) #4

declare ptr @GetFileExtension(ptr noundef) #4

declare zeroext i1 @IsFileExtension(ptr noundef, ptr noundef) #4

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

declare zeroext i1 @ExportImage(ptr noundef byval(%struct.Image) align 8, ptr noundef) #4

declare i32 @GetPixelDataSize(i32 noundef, i32 noundef, i32 noundef) #4

declare i64 @fwrite(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #4

declare zeroext i1 @ExportImageAsCode(ptr noundef byval(%struct.Image) align 8, ptr noundef) #4

declare void @BeginDrawing() #4

declare void @ClearBackground(i32) #4

declare void @DrawTextureEx(ptr noundef byval(%struct.Texture) align 8, <2 x float>, float noundef, float noundef, i32) #4

declare void @DrawRectangleLinesEx(<2 x float>, <2 x float>, i32 noundef, i32) #4

declare void @DrawText(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32) #4

declare void @DrawRectangle(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32) #4

declare ptr @TextJoin(ptr noundef, i32 noundef, ptr noundef) #4

declare void @EndDrawing() #4

declare void @CloseWindow() #4

attributes #0 = { 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 #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16, !10, i64 0}
!16 = !{!"Image", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!17 = !{i64 0, i64 8, !9, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5, i64 20, i64 4, !5}
!18 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5}
!19 = !{!16, !6, i64 20}
!20 = !{!21, !6, i64 8}
!21 = !{!"Texture", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!22 = !{!21, !6, i64 4}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!16, !6, i64 8}
!26 = !{!16, !6, i64 12}
!27 = !{!28, !14, i64 0}
!28 = !{!"Rectangle", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!29 = !{!28, !14, i64 4}
!30 = !{!28, !14, i64 8}
!31 = !{!28, !14, i64 12}
!32 = !{i64 0, i64 4, !13, i64 4, i64 4, !13, i64 8, i64 4, !13, i64 12, i64 4, !13}
!33 = !{!34, !7, i64 0}
!34 = !{!"Color", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3}
!35 = !{!34, !7, i64 1}
!36 = !{!34, !7, i64 2}
!37 = !{!34, !7, i64 3}
!38 = !{!21, !6, i64 0}
!39 = !{!40, !14, i64 0}
!40 = !{!"Vector2", !14, i64 0, !14, i64 4}
!41 = !{!40, !14, i64 4}
!42 = distinct !{!42, !43}
!43 = !{!"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.Rectangle = type { float, float, float, float }
%struct.Texture = type { i32, i32, i32, i32, i32 }
%struct.Image = type { ptr, i32, i32, i32, i32 }

@.str.10 = external hidden unnamed_addr constant [24 x i8], align 1
@__const.main.windowBoxRec = external hidden unnamed_addr constant %struct.Rectangle, align 4
@__const.main.fileFormatTextList = external hidden unnamed_addr constant [3 x ptr], align 16
@__const.main.pixelFormatTextList = external hidden unnamed_addr constant [7 x ptr], align 16
@__const.main.fileName = external hidden unnamed_addr constant [32 x i8], align 16
@.str.21 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @GuiEnable() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @GuiDisable() local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @GuiGetStyle(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @GuiWindowBox(<2 x float>, <2 x float>, ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @GuiButton(<2 x float>, <2 x float>, ptr noundef) local_unnamed_addr #3

declare i32 @Fade(i32, float noundef) local_unnamed_addr #4

declare i32 @GetColor(i32 noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

; Function Attrs: nounwind uwtable
declare dso_local void @GuiLabel(<2 x float>, <2 x float>, ptr noundef) local_unnamed_addr #3

declare <2 x float> @GetMousePosition() local_unnamed_addr #4

declare zeroext i1 @CheckCollisionPointRec(<2 x float>, <2 x float>, <2 x float>) local_unnamed_addr #4

declare float @GetMouseWheelMove() local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #6

; Function Attrs: nounwind uwtable
declare dso_local i32 @GuiComboBox(<2 x float>, <2 x float>, ptr noundef, i32 noundef) local_unnamed_addr #3

declare ptr @TextFormat(ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @GuiTextBox(<2 x float>, <2 x float>, ptr noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #7

declare void @LoadTextureFromImage(ptr dead_on_unwind writable sret(%struct.Texture) align 4, ptr noundef byval(%struct.Image) align 8) local_unnamed_addr #4

declare void @UnloadImage(ptr noundef byval(%struct.Image) align 8) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #3 {
  %3 = alloca [3 x ptr], align 16
  %4 = alloca [7 x ptr], align 16
  %5 = alloca [32 x i8], align 16
  %6 = alloca %struct.Image, align 8
  %7 = alloca %struct.Texture, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.Image, align 8
  %10 = alloca %struct.Texture, align 4
  tail call void @InitWindow(i32 noundef 800, i32 noundef 450, ptr noundef nonnull @.str.10) #9
  %11 = load <2 x float>, ptr @__const.main.windowBoxRec, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(24) %3, ptr noundef nonnull align 16 dereferenceable(24) @__const.main.fileFormatTextList, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(56) %4, ptr noundef nonnull align 16 dereferenceable(56) @__const.main.pixelFormatTextList, i64 56, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %5, ptr noundef nonnull align 16 dereferenceable(32) @__const.main.fileName, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %7) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %7, i8 0, i64 20, i1 false)
  tail call void @SetTargetFPS(i32 noundef 60) #9
  %12 = tail call zeroext i1 @WindowShouldClose() #9
  br i1 %12, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %13 = getelementptr inbounds i8, ptr %6, i64 20
  %14 = getelementptr inbounds i8, ptr %7, i64 8
  %15 = getelementptr inbounds i8, ptr %7, i64 4
  %16 = getelementptr inbounds i8, ptr %6, i64 8
  %17 = getelementptr inbounds i8, ptr %6, i64 12
  %18 = extractelement <2 x float> %11, i64 0
  %19 = fadd float %18, 1.000000e+01
  %.sroa.025.0.vec.insert = insertelement <2 x float> poison, float %19, i64 0
  %20 = extractelement <2 x float> %11, i64 1
  %21 = fadd float %20, 3.500000e+01
  %.sroa.025.4.vec.insert = insertelement <2 x float> %.sroa.025.0.vec.insert, float %21, i64 1
  %22 = fadd float %18, 8.000000e+01
  %.sroa.021.0.vec.insert = insertelement <2 x float> poison, float %22, i64 0
  %.sroa.021.4.vec.insert = insertelement <2 x float> %.sroa.021.0.vec.insert, float %21, i64 1
  %23 = fadd float %20, 7.000000e+01
  %.sroa.017.4.vec.insert = insertelement <2 x float> %.sroa.025.0.vec.insert, float %23, i64 1
  %.sroa.013.4.vec.insert = insertelement <2 x float> %.sroa.021.0.vec.insert, float %23, i64 1
  %24 = fadd float %20, 1.050000e+02
  %.sroa.09.4.vec.insert = insertelement <2 x float> %.sroa.025.0.vec.insert, float %24, i64 1
  %.sroa.05.4.vec.insert = insertelement <2 x float> %.sroa.021.0.vec.insert, float %24, i64 1
  %25 = fadd float %20, 1.450000e+02
  %.sroa.01.4.vec.insert = insertelement <2 x float> %.sroa.025.0.vec.insert, float %25, i64 1
  br label %26

26:                                               ; preds = %.lr.ph, %.thread
  %.0150 = phi i1 [ false, %.lr.ph ], [ %.3141, %.thread ]
  %.0108149 = phi i32 [ 0, %.lr.ph ], [ %.1109140, %.thread ]
  %.0110148 = phi i32 [ 0, %.lr.ph ], [ %.4139, %.thread ]
  %.0114147 = phi i1 [ false, %.lr.ph ], [ %.2116138, %.thread ]
  %.0117146 = phi i8 [ 0, %.lr.ph ], [ %.3120, %.thread ]
  %.0121145 = phi float [ 1.000000e+00, %.lr.ph ], [ %.5, %.thread ]
  %.sroa.768.0144 = phi <2 x float> [ zeroinitializer, %.lr.ph ], [ %.sroa.768.1, %.thread ]
  %.sroa.065.0143 = phi <2 x float> [ zeroinitializer, %.lr.ph ], [ %.sroa.065.1, %.thread ]
  %.0126142 = phi i1 [ false, %.lr.ph ], [ %.1127137, %.thread ]
  %27 = call zeroext i1 @IsFileDropped() #9
  br i1 %27, label %28, label %49

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #9
  store i32 0, ptr %8, align 4, !tbaa !5
  %29 = call ptr @GetDroppedFiles(ptr noundef nonnull %8) #9
  %30 = load i32, ptr %8, align 4, !tbaa !5
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %32, label %48

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  %33 = load ptr, ptr %29, align 8, !tbaa !9
  call void @LoadImage(ptr dead_on_unwind nonnull writable sret(%struct.Image) align 8 %9, ptr noundef %33) #9
  %34 = load ptr, ptr %9, align 8, !tbaa !11
  %.not = icmp eq ptr %34, null
  br i1 %.not, label %47, label %35

35:                                               ; preds = %32
  call void @UnloadImage(ptr noundef nonnull byval(%struct.Image) align 8 %6) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %9, i64 24, i1 false), !tbaa.struct !13
  call void @UnloadTexture(ptr noundef nonnull byval(%struct.Texture) align 8 %7) #9
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %10) #9
  call void @LoadTextureFromImage(ptr dead_on_unwind nonnull writable sret(%struct.Texture) align 4 %10, ptr noundef nonnull byval(%struct.Image) align 8 %6) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) %7, ptr noundef nonnull align 4 dereferenceable(20) %10, i64 20, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %10) #9
  %36 = load i32, ptr %13, align 4, !tbaa !15
  %37 = add nsw i32 %36, -1
  %38 = load i32, ptr %14, align 8, !tbaa !16
  %39 = load i32, ptr %15, align 4, !tbaa !18
  %40 = icmp sgt i32 %38, %39
  br i1 %40, label %41, label %44

41:                                               ; preds = %35
  %42 = sitofp i32 %38 to float
  %43 = fdiv float 3.500000e+02, %42
  br label %47

44:                                               ; preds = %35
  %45 = sitofp i32 %39 to float
  %46 = fdiv float 7.000000e+02, %45
  br label %47

47:                                               ; preds = %41, %44, %32
  %.1122 = phi float [ %43, %41 ], [ %46, %44 ], [ %.0121145, %32 ]
  %.1118 = phi i8 [ 1, %41 ], [ 1, %44 ], [ %.0117146, %32 ]
  %.1111 = phi i32 [ %37, %41 ], [ %37, %44 ], [ %.0110148, %32 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  br label %48

48:                                               ; preds = %47, %28
  %.2123 = phi float [ %.1122, %47 ], [ %.0121145, %28 ]
  %.2119 = phi i8 [ %.1118, %47 ], [ %.0117146, %28 ]
  %.2112 = phi i32 [ %.1111, %47 ], [ %.0110148, %28 ]
  call void @ClearDroppedFiles() #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #9
  br label %49

49:                                               ; preds = %48, %26
  %.3124 = phi float [ %.2123, %48 ], [ %.0121145, %26 ]
  %.3120 = phi i8 [ %.2119, %48 ], [ %.0117146, %26 ]
  %.3113 = phi i32 [ %.2112, %48 ], [ %.0110148, %26 ]
  %50 = trunc nuw i8 %.3120 to i1
  br i1 %.0126142, label %51, label %82

51:                                               ; preds = %49
  br i1 %50, label %52, label %.thread157

52:                                               ; preds = %51
  %53 = add nsw i32 %.3113, 1
  call void @ImageFormat(ptr noundef nonnull %6, i32 noundef %53) #9
  switch i32 %.0108149, label %.thread152 [
    i32 0, label %54
    i32 1, label %63
    i32 2, label %80
  ]

54:                                               ; preds = %52
  %55 = call ptr @GetFileExtension(ptr noundef nonnull %5) #9
  %56 = icmp eq ptr %55, null
  br i1 %56, label %59, label %57

57:                                               ; preds = %54
  %58 = call zeroext i1 @IsFileExtension(ptr noundef nonnull %5, ptr noundef nonnull @.str.21) #9
  br i1 %58, label %61, label %59

59:                                               ; preds = %57, %54
  %60 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.22) #9
  br label %61

61:                                               ; preds = %59, %57
  %62 = call zeroext i1 @ExportImage(ptr noundef nonnull byval(%struct.Image) align 8 %6, ptr noundef nonnull %5) #9
  br label %.thread152

63:                                               ; preds = %52
  %64 = call ptr @GetFileExtension(ptr noundef nonnull %5) #9
  %65 = icmp eq ptr %64, null
  br i1 %65, label %68, label %66

66:                                               ; preds = %63
  %67 = call zeroext i1 @IsFileExtension(ptr noundef nonnull %5, ptr noundef nonnull @.str.23) #9
  br i1 %67, label %70, label %68

68:                                               ; preds = %66, %63
  %69 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %5, ptr noundef nonnull dereferenceable(1) @.str.24) #9
  br label %70

70:                                               ; preds = %68, %66
  %71 = load i32, ptr %16, align 8, !tbaa !19
  %72 = load i32, ptr %17, align 4, !tbaa !20
  %73 = load i32, ptr %13, align 4, !tbaa !15
  %74 = call i32 @GetPixelDataSize(i32 noundef %71, i32 noundef %72, i32 noundef %73) #9
  %75 = call noalias ptr @fopen(ptr noundef nonnull %5, ptr noundef nonnull @.str.25)
  %76 = load ptr, ptr %6, align 8, !tbaa !11
  %77 = sext i32 %74 to i64
  %78 = call i64 @fwrite(ptr noundef %76, i64 noundef %77, i64 noundef 1, ptr noundef %75)
  %79 = call i32 @fclose(ptr noundef %75)
  br label %.thread152

80:                                               ; preds = %52
  %81 = call zeroext i1 @ExportImageAsCode(ptr noundef nonnull byval(%struct.Image) align 8 %6, ptr noundef nonnull %5) #9
  br label %.thread152

82:                                               ; preds = %49
  br i1 %50, label %.thread152, label %.thread157

.thread152:                                       ; preds = %52, %61, %80, %70, %82
  %.1156 = phi i1 [ %.0150, %82 ], [ false, %70 ], [ false, %80 ], [ false, %61 ], [ false, %52 ]
  %83 = call float @GetMouseWheelMove() #9
  %84 = call float @llvm.fmuladd.f32(float %83, float 0x3FA99999A0000000, float %.3124)
  %85 = fcmp ugt float %84, 0x3FB99999A0000000
  br i1 %85, label %86, label %89

86:                                               ; preds = %.thread152
  %87 = fcmp ult float %84, 5.000000e+00
  br i1 %87, label %89, label %88

88:                                               ; preds = %86
  br label %89

89:                                               ; preds = %.thread152, %86, %88
  %.4125 = phi float [ 5.000000e+00, %88 ], [ %84, %86 ], [ 0x3FB99999A0000000, %.thread152 ]
  %90 = load <2 x i32>, ptr %16, align 8, !tbaa !5
  %91 = sitofp <2 x i32> %90 to <2 x float>
  %92 = insertelement <2 x float> poison, float %.4125, i64 0
  %93 = shufflevector <2 x float> %92, <2 x float> poison, <2 x i32> zeroinitializer
  %94 = fmul <2 x float> %93, %91
  %95 = fmul <2 x float> %94, <float 5.000000e-01, float 5.000000e-01>
  %96 = fsub <2 x float> <float 4.000000e+02, float 2.250000e+02>, %95
  br label %.thread157

.thread157:                                       ; preds = %51, %89, %82
  %.1155 = phi i1 [ %.1156, %89 ], [ %.0150, %82 ], [ false, %51 ]
  %.sroa.065.1 = phi <2 x float> [ %96, %89 ], [ %.sroa.065.0143, %82 ], [ %.sroa.065.0143, %51 ]
  %.sroa.768.1 = phi <2 x float> [ %94, %89 ], [ %.sroa.768.0144, %82 ], [ %.sroa.768.0144, %51 ]
  %.5 = phi float [ %.4125, %89 ], [ %.3124, %82 ], [ %.3124, %51 ]
  call void @BeginDrawing() #9
  call void @ClearBackground(i32 -657931) #9
  %97 = load i32, ptr %7, align 8, !tbaa !21
  %.not131 = icmp eq i32 %97, 0
  br i1 %.not131, label %113, label %98

98:                                               ; preds = %.thread157
  %99 = load <2 x i32>, ptr %15, align 4, !tbaa !5
  %100 = sitofp <2 x i32> %99 to <2 x float>
  %101 = insertelement <2 x float> poison, float %.5, i64 0
  %102 = shufflevector <2 x float> %101, <2 x float> poison, <2 x i32> zeroinitializer
  %103 = fmul <2 x float> %102, %100
  %104 = fmul <2 x float> %103, <float 5.000000e-01, float 5.000000e-01>
  %105 = fsub <2 x float> <float 4.000000e+02, float 2.250000e+02>, %104
  call void @DrawTextureEx(ptr noundef nonnull byval(%struct.Texture) align 8 %7, <2 x float> %105, float noundef 0.000000e+00, float noundef %.5, i32 -1) #9
  %106 = call <2 x float> @GetMousePosition() #9
  %107 = call zeroext i1 @CheckCollisionPointRec(<2 x float> %106, <2 x float> %.sroa.065.1, <2 x float> %.sroa.768.1) #9
  %. = select i1 %107, i32 -13162010, i32 -11513776
  call void @DrawRectangleLinesEx(<2 x float> %.sroa.065.1, <2 x float> %.sroa.768.1, i32 noundef 1, i32 %.) #9
  %108 = fmul float %.5, 1.000000e+02
  %109 = fpext float %108 to double
  %110 = call ptr (ptr, ...) @TextFormat(ptr noundef nonnull @.str.26, double noundef %109) #9
  %111 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 18)
  %112 = call i32 @GetColor(i32 noundef %111) #9
  call void @DrawText(ptr noundef %110, i32 noundef 20, i32 noundef 410, i32 noundef 20, i32 %112) #9
  br label %114

113:                                              ; preds = %.thread157
  call void @DrawText(ptr noundef nonnull @.str.27, i32 noundef 350, i32 noundef 200, i32 noundef 10, i32 -11513776) #9
  call void @GuiDisable()
  br label %114

114:                                              ; preds = %113, %98
  %115 = call zeroext i1 @GuiButton(<2 x float> <float 6.300000e+02, float 4.000000e+02>, <2 x float> <float 1.500000e+02, float 3.000000e+01>, ptr noundef nonnull @.str.28)
  %spec.select = select i1 %115, i1 true, i1 %.1155
  call void @GuiEnable()
  br i1 %spec.select, label %116, label %.thread

116:                                              ; preds = %114
  %117 = call i32 @GuiGetStyle(i32 noundef 0, i32 noundef 19)
  %118 = call i32 @GetColor(i32 noundef %117) #9
  %119 = call i32 @Fade(i32 %118, float noundef 0x3FE6666660000000) #9
  call void @DrawRectangle(i32 noundef 0, i32 noundef 0, i32 noundef 800, i32 noundef 450, i32 %119) #9
  %120 = call zeroext i1 @GuiWindowBox(<2 x float> %11, <2 x float> <float 2.200000e+02, float 1.900000e+02>, ptr noundef nonnull @.str.29)
  %121 = xor i1 %120, true
  call void @GuiLabel(<2 x float> %.sroa.025.4.vec.insert, <2 x float> <float 6.000000e+01, float 2.500000e+01>, ptr noundef nonnull @.str.30)
  %122 = call ptr @TextJoin(ptr noundef nonnull %3, i32 noundef 3, ptr noundef nonnull @.str.31) #9
  %123 = call i32 @GuiComboBox(<2 x float> %.sroa.021.4.vec.insert, <2 x float> <float 1.300000e+02, float 2.500000e+01>, ptr noundef %122, i32 noundef %.0108149)
  call void @GuiLabel(<2 x float> %.sroa.017.4.vec.insert, <2 x float> <float 6.300000e+01, float 2.500000e+01>, ptr noundef nonnull @.str.32)
  %124 = call ptr @TextJoin(ptr noundef nonnull %4, i32 noundef 7, ptr noundef nonnull @.str.31) #9
  %125 = call i32 @GuiComboBox(<2 x float> %.sroa.013.4.vec.insert, <2 x float> <float 1.300000e+02, float 2.500000e+01>, ptr noundef %124, i32 noundef %.3113)
  call void @GuiLabel(<2 x float> %.sroa.09.4.vec.insert, <2 x float> <float 5.000000e+01, float 2.500000e+01>, ptr noundef nonnull @.str.33)
  %126 = call zeroext i1 @GuiTextBox(<2 x float> %.sroa.05.4.vec.insert, <2 x float> <float 1.300000e+02, float 2.500000e+01>, ptr noundef nonnull %5, i32 noundef 64, i1 noundef zeroext %.0114147)
  %.1115 = xor i1 %.0114147, %126
  %127 = call zeroext i1 @GuiButton(<2 x float> %.sroa.01.4.vec.insert, <2 x float> <float 2.000000e+02, float 3.000000e+01>, ptr noundef nonnull @.str.34)
  br i1 %127, label %128, label %.thread

128:                                              ; preds = %116
  call void @DrawText(ptr noundef nonnull @.str.35, i32 noundef 20, i32 noundef 430, i32 noundef 20, i32 -13162010) #9
  br label %.thread

.thread:                                          ; preds = %114, %128, %116
  %.3141 = phi i1 [ %121, %128 ], [ %121, %116 ], [ false, %114 ]
  %.1109140 = phi i32 [ %123, %128 ], [ %123, %116 ], [ %.0108149, %114 ]
  %.4139 = phi i32 [ %125, %128 ], [ %125, %116 ], [ %.3113, %114 ]
  %.2116138 = phi i1 [ %.1115, %128 ], [ %.1115, %116 ], [ %.0114147, %114 ]
  %.1127137 = phi i1 [ true, %128 ], [ false, %116 ], [ false, %114 ]
  call void @EndDrawing() #9
  %129 = call zeroext i1 @WindowShouldClose() #9
  br i1 %129, label %._crit_edge, label %26, !llvm.loop !22

._crit_edge:                                      ; preds = %.thread, %2
  call void @UnloadImage(ptr noundef nonnull byval(%struct.Image) align 8 %6) #9
  call void @UnloadTexture(ptr noundef nonnull byval(%struct.Texture) align 8 %7) #9
  call void @CloseWindow() #9
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  ret i32 0
}

declare void @InitWindow(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare void @SetTargetFPS(i32 noundef) local_unnamed_addr #4

declare zeroext i1 @WindowShouldClose() local_unnamed_addr #4

declare zeroext i1 @IsFileDropped() local_unnamed_addr #4

declare ptr @GetDroppedFiles(ptr noundef) local_unnamed_addr #4

declare void @LoadImage(ptr dead_on_unwind writable sret(%struct.Image) align 8, ptr noundef) local_unnamed_addr #4

declare void @UnloadTexture(ptr noundef byval(%struct.Texture) align 8) local_unnamed_addr #4

declare void @ClearDroppedFiles() local_unnamed_addr #4

declare void @ImageFormat(ptr noundef, i32 noundef) local_unnamed_addr #4

declare ptr @GetFileExtension(ptr noundef) local_unnamed_addr #4

declare zeroext i1 @IsFileExtension(ptr noundef, ptr noundef) local_unnamed_addr #4

; 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

declare zeroext i1 @ExportImage(ptr noundef byval(%struct.Image) align 8, ptr noundef) local_unnamed_addr #4

declare i32 @GetPixelDataSize(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i64 @fwrite(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #7

declare zeroext i1 @ExportImageAsCode(ptr noundef byval(%struct.Image) align 8, ptr noundef) local_unnamed_addr #4

declare void @BeginDrawing() local_unnamed_addr #4

declare void @ClearBackground(i32) local_unnamed_addr #4

declare void @DrawTextureEx(ptr noundef byval(%struct.Texture) align 8, <2 x float>, float noundef, float noundef, i32) local_unnamed_addr #4

declare void @DrawRectangleLinesEx(<2 x float>, <2 x float>, i32 noundef, i32) local_unnamed_addr #4

declare void @DrawText(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32) local_unnamed_addr #4

declare void @DrawRectangle(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32) local_unnamed_addr #4

declare ptr @TextJoin(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

declare void @EndDrawing() local_unnamed_addr #4

declare void @CloseWindow() local_unnamed_addr #4

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="64" "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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"Image", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20}
!13 = !{i64 0, i64 8, !9, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5, i64 20, i64 4, !5}
!14 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5, i64 16, i64 4, !5}
!15 = !{!12, !6, i64 20}
!16 = !{!17, !6, i64 8}
!17 = !{!"Texture", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16}
!18 = !{!17, !6, i64 4}
!19 = !{!12, !6, i64 8}
!20 = !{!12, !6, i64 12}
!21 = !{!17, !6, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass