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

; 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.ImVec2 = type { float, float }
%struct.ImDrawList = type <{ %struct.ImVector.0, %struct.ImVector.1, %struct.ImVector.2, i32, i32, ptr, ptr, ptr, ptr, %struct.ImVector.3, %struct.ImVector.4, %struct.ImVector, %struct.ImDrawCmdHeader, %struct.ImDrawListSplitter, float, [4 x i8] }>
%struct.ImVector.0 = type { i32, i32, ptr }
%struct.ImVector.1 = type { i32, i32, ptr }
%struct.ImVector.2 = type { i32, i32, ptr }
%struct.ImVector.3 = type { i32, i32, ptr }
%struct.ImVector.4 = type { i32, i32, ptr }
%struct.ImVector = type { i32, i32, ptr }
%struct.ImDrawCmdHeader = type <{ %struct.ImVec4, ptr, i32, [4 x i8] }>
%struct.ImVec4 = type { float, float, float, float }
%struct.ImDrawListSplitter = type { i32, i32, %struct.ImVector.5 }
%struct.ImVector.5 = type { i32, i32, ptr }
%struct.ImDrawListSharedData = type { %struct.ImVec2, ptr, float, float, float, %struct.ImVec4, i32, %struct.ImVector, [48 x %struct.ImVec2], float, [64 x i8], ptr }

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

; Function Attrs: nocallback nofree 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.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(196), float noundef) #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList16_PathArcToFastExERK6ImVec2fiii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #4 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.ImVec2, align 4
  %22 = alloca i32, align 4
  %23 = alloca %struct.ImVec2, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.ImVec2, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store float %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !11
  store i32 %4, ptr %11, align 4, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !11
  %26 = load ptr, ptr %7, align 8
  %27 = load float, ptr %9, align 4, !tbaa !9
  %28 = fcmp olt float %27, 5.000000e-01
  br i1 %28, label %29, label %32

29:                                               ; preds = %6
  %30 = getelementptr inbounds %struct.ImDrawList, ptr %26, i32 0, i32 11
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(8) %31)
  br label %248

32:                                               ; preds = %6
  %33 = load i32, ptr %12, align 4, !tbaa !11
  %34 = icmp sle i32 %33, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %32
  %36 = load float, ptr %9, align 4, !tbaa !9
  %37 = call noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(196) %26, float noundef %36)
  %38 = sdiv i32 48, %37
  store i32 %38, ptr %12, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %35, %32
  %40 = load i32, ptr %12, align 4, !tbaa !11
  %41 = call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %40, i32 noundef 1, i32 noundef 12)
  store i32 %41, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %42 = load i32, ptr %11, align 4, !tbaa !11
  %43 = load i32, ptr %10, align 4, !tbaa !11
  %44 = sub nsw i32 %42, %43
  %45 = call noundef i32 @_ZL5ImAbsi(i32 noundef %44)
  store i32 %45, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %46 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %46, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %47 = load i32, ptr %13, align 4, !tbaa !11
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  store i8 0, ptr %16, align 1, !tbaa !13
  %49 = load i32, ptr %12, align 4, !tbaa !11
  %50 = icmp sgt i32 %49, 1
  br i1 %50, label %51, label %75

51:                                               ; preds = %39
  %52 = load i32, ptr %13, align 4, !tbaa !11
  %53 = load i32, ptr %12, align 4, !tbaa !11
  %54 = sdiv i32 %52, %53
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %56 = load i32, ptr %13, align 4, !tbaa !11
  %57 = load i32, ptr %12, align 4, !tbaa !11
  %58 = srem i32 %56, %57
  store i32 %58, ptr %17, align 4, !tbaa !11
  %59 = load i32, ptr %17, align 4, !tbaa !11
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %61, label %74

61:                                               ; preds = %51
  store i8 1, ptr %16, align 1, !tbaa !13
  %62 = load i32, ptr %15, align 4, !tbaa !11
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %15, align 4, !tbaa !11
  %64 = load i32, ptr %13, align 4, !tbaa !11
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %66, label %73

66:                                               ; preds = %61
  %67 = load i32, ptr %12, align 4, !tbaa !11
  %68 = load i32, ptr %17, align 4, !tbaa !11
  %69 = sub nsw i32 %67, %68
  %70 = sdiv i32 %69, 2
  %71 = load i32, ptr %12, align 4, !tbaa !11
  %72 = sub nsw i32 %71, %70
  store i32 %72, ptr %12, align 4, !tbaa !11
  br label %73

73:                                               ; preds = %66, %61
  br label %74

74:                                               ; preds = %73, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %75

75:                                               ; preds = %74, %39
  %76 = getelementptr inbounds %struct.ImDrawList, ptr %26, i32 0, i32 11
  %77 = getelementptr inbounds %struct.ImDrawList, ptr %26, i32 0, i32 11
  %78 = getelementptr inbounds %struct.ImVector, ptr %77, i32 0, i32 0
  %79 = load i32, ptr %78, align 8, !tbaa !15
  %80 = load i32, ptr %15, align 4, !tbaa !11
  %81 = add nsw i32 %79, %80
  call void @_ZN8ImVectorI6ImVec2E6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %76, i32 noundef %81)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %82 = getelementptr inbounds %struct.ImDrawList, ptr %26, i32 0, i32 11
  %83 = getelementptr inbounds %struct.ImVector, ptr %82, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !27
  %85 = getelementptr inbounds %struct.ImDrawList, ptr %26, i32 0, i32 11
  %86 = getelementptr inbounds %struct.ImVector, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !15
  %88 = load i32, ptr %15, align 4, !tbaa !11
  %89 = sub nsw i32 %87, %88
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %struct.ImVec2, ptr %84, i64 %90
  store ptr %91, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %92 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %92, ptr %19, align 4, !tbaa !11
  %93 = load i32, ptr %19, align 4, !tbaa !11
  %94 = icmp slt i32 %93, 0
  br i1 %94, label %98, label %95

95:                                               ; preds = %75
  %96 = load i32, ptr %19, align 4, !tbaa !11
  %97 = icmp sge i32 %96, 48
  br i1 %97, label %98, label %107

98:                                               ; preds = %95, %75
  %99 = load i32, ptr %19, align 4, !tbaa !11
  %100 = srem i32 %99, 48
  store i32 %100, ptr %19, align 4, !tbaa !11
  %101 = load i32, ptr %19, align 4, !tbaa !11
  %102 = icmp slt i32 %101, 0
  br i1 %102, label %103, label %106

103:                                              ; preds = %98
  %104 = load i32, ptr %19, align 4, !tbaa !11
  %105 = add nsw i32 %104, 48
  store i32 %105, ptr %19, align 4, !tbaa !11
  br label %106

106:                                              ; preds = %103, %98
  br label %107

107:                                              ; preds = %106, %95
  %108 = load i32, ptr %11, align 4, !tbaa !11
  %109 = load i32, ptr %10, align 4, !tbaa !11
  %110 = icmp sge i32 %108, %109
  br i1 %110, label %111, label %160

111:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %112 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %112, ptr %20, align 4, !tbaa !11
  br label %113

113:                                              ; preds = %151, %111
  %114 = load i32, ptr %20, align 4, !tbaa !11
  %115 = load i32, ptr %11, align 4, !tbaa !11
  %116 = icmp sle i32 %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %159

118:                                              ; preds = %113
  %119 = load i32, ptr %19, align 4, !tbaa !11
  %120 = icmp sge i32 %119, 48
  br i1 %120, label %121, label %124

121:                                              ; preds = %118
  %122 = load i32, ptr %19, align 4, !tbaa !11
  %123 = sub nsw i32 %122, 48
  store i32 %123, ptr %19, align 4, !tbaa !11
  br label %124

124:                                              ; preds = %121, %118
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %125 = getelementptr inbounds %struct.ImDrawList, ptr %26, i32 0, i32 5
  %126 = load ptr, ptr %125, align 8, !tbaa !28
  %127 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %126, i32 0, i32 8
  %128 = load i32, ptr %19, align 4, !tbaa !11
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [48 x %struct.ImVec2], ptr %127, i64 0, i64 %129
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 8 %130, i64 8, i1 false), !tbaa.struct !29
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ImVec2, ptr %131, i32 0, i32 0
  %133 = load float, ptr %132, align 4, !tbaa !30
  %134 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 0
  %135 = load float, ptr %134, align 4, !tbaa !30
  %136 = load float, ptr %9, align 4, !tbaa !9
  %137 = call float @llvm.fmuladd.f32(float %135, float %136, float %133)
  %138 = load ptr, ptr %18, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.ImVec2, ptr %138, i32 0, i32 0
  store float %137, ptr %139, align 4, !tbaa !30
  %140 = load ptr, ptr %8, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.ImVec2, ptr %140, i32 0, i32 1
  %142 = load float, ptr %141, align 4, !tbaa !32
  %143 = getelementptr inbounds %struct.ImVec2, ptr %21, i32 0, i32 1
  %144 = load float, ptr %143, align 4, !tbaa !32
  %145 = load float, ptr %9, align 4, !tbaa !9
  %146 = call float @llvm.fmuladd.f32(float %144, float %145, float %142)
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ImVec2, ptr %147, i32 0, i32 1
  store float %146, ptr %148, align 4, !tbaa !32
  %149 = load ptr, ptr %18, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.ImVec2, ptr %149, i32 1
  store ptr %150, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %151

151:                                              ; preds = %124
  %152 = load i32, ptr %12, align 4, !tbaa !11
  %153 = load i32, ptr %20, align 4, !tbaa !11
  %154 = add nsw i32 %153, %152
  store i32 %154, ptr %20, align 4, !tbaa !11
  %155 = load i32, ptr %12, align 4, !tbaa !11
  %156 = load i32, ptr %19, align 4, !tbaa !11
  %157 = add nsw i32 %156, %155
  store i32 %157, ptr %19, align 4, !tbaa !11
  %158 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %158, ptr %12, align 4, !tbaa !11
  br label %113, !llvm.loop !33

159:                                              ; preds = %117
  br label %209

160:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %161 = load i32, ptr %10, align 4, !tbaa !11
  store i32 %161, ptr %22, align 4, !tbaa !11
  br label %162

162:                                              ; preds = %200, %160
  %163 = load i32, ptr %22, align 4, !tbaa !11
  %164 = load i32, ptr %11, align 4, !tbaa !11
  %165 = icmp sge i32 %163, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %208

167:                                              ; preds = %162
  %168 = load i32, ptr %19, align 4, !tbaa !11
  %169 = icmp slt i32 %168, 0
  br i1 %169, label %170, label %173

170:                                              ; preds = %167
  %171 = load i32, ptr %19, align 4, !tbaa !11
  %172 = add nsw i32 %171, 48
  store i32 %172, ptr %19, align 4, !tbaa !11
  br label %173

173:                                              ; preds = %170, %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %174 = getelementptr inbounds %struct.ImDrawList, ptr %26, i32 0, i32 5
  %175 = load ptr, ptr %174, align 8, !tbaa !28
  %176 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %175, i32 0, i32 8
  %177 = load i32, ptr %19, align 4, !tbaa !11
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [48 x %struct.ImVec2], ptr %176, i64 0, i64 %178
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 8 %179, i64 8, i1 false), !tbaa.struct !29
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.ImVec2, ptr %180, i32 0, i32 0
  %182 = load float, ptr %181, align 4, !tbaa !30
  %183 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 0
  %184 = load float, ptr %183, align 4, !tbaa !30
  %185 = load float, ptr %9, align 4, !tbaa !9
  %186 = call float @llvm.fmuladd.f32(float %184, float %185, float %182)
  %187 = load ptr, ptr %18, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.ImVec2, ptr %187, i32 0, i32 0
  store float %186, ptr %188, align 4, !tbaa !30
  %189 = load ptr, ptr %8, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.ImVec2, ptr %189, i32 0, i32 1
  %191 = load float, ptr %190, align 4, !tbaa !32
  %192 = getelementptr inbounds %struct.ImVec2, ptr %23, i32 0, i32 1
  %193 = load float, ptr %192, align 4, !tbaa !32
  %194 = load float, ptr %9, align 4, !tbaa !9
  %195 = call float @llvm.fmuladd.f32(float %193, float %194, float %191)
  %196 = load ptr, ptr %18, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.ImVec2, ptr %196, i32 0, i32 1
  store float %195, ptr %197, align 4, !tbaa !32
  %198 = load ptr, ptr %18, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.ImVec2, ptr %198, i32 1
  store ptr %199, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %200

200:                                              ; preds = %173
  %201 = load i32, ptr %12, align 4, !tbaa !11
  %202 = load i32, ptr %22, align 4, !tbaa !11
  %203 = sub nsw i32 %202, %201
  store i32 %203, ptr %22, align 4, !tbaa !11
  %204 = load i32, ptr %12, align 4, !tbaa !11
  %205 = load i32, ptr %19, align 4, !tbaa !11
  %206 = sub nsw i32 %205, %204
  store i32 %206, ptr %19, align 4, !tbaa !11
  %207 = load i32, ptr %14, align 4, !tbaa !11
  store i32 %207, ptr %12, align 4, !tbaa !11
  br label %162, !llvm.loop !35

208:                                              ; preds = %166
  br label %209

209:                                              ; preds = %208, %159
  %210 = load i8, ptr %16, align 1, !tbaa !13, !range !36, !noundef !37
  %211 = trunc i8 %210 to i1
  br i1 %211, label %212, label %247

212:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %213 = load i32, ptr %11, align 4, !tbaa !11
  %214 = srem i32 %213, 48
  store i32 %214, ptr %24, align 4, !tbaa !11
  %215 = load i32, ptr %24, align 4, !tbaa !11
  %216 = icmp slt i32 %215, 0
  br i1 %216, label %217, label %220

217:                                              ; preds = %212
  %218 = load i32, ptr %24, align 4, !tbaa !11
  %219 = add nsw i32 %218, 48
  store i32 %219, ptr %24, align 4, !tbaa !11
  br label %220

220:                                              ; preds = %217, %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  %221 = getelementptr inbounds %struct.ImDrawList, ptr %26, i32 0, i32 5
  %222 = load ptr, ptr %221, align 8, !tbaa !28
  %223 = getelementptr inbounds %struct.ImDrawListSharedData, ptr %222, i32 0, i32 8
  %224 = load i32, ptr %24, align 4, !tbaa !11
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [48 x %struct.ImVec2], ptr %223, i64 0, i64 %225
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %226, i64 8, i1 false), !tbaa.struct !29
  %227 = load ptr, ptr %8, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.ImVec2, ptr %227, i32 0, i32 0
  %229 = load float, ptr %228, align 4, !tbaa !30
  %230 = getelementptr inbounds %struct.ImVec2, ptr %25, i32 0, i32 0
  %231 = load float, ptr %230, align 4, !tbaa !30
  %232 = load float, ptr %9, align 4, !tbaa !9
  %233 = call float @llvm.fmuladd.f32(float %231, float %232, float %229)
  %234 = load ptr, ptr %18, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.ImVec2, ptr %234, i32 0, i32 0
  store float %233, ptr %235, align 4, !tbaa !30
  %236 = load ptr, ptr %8, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.ImVec2, ptr %236, i32 0, i32 1
  %238 = load float, ptr %237, align 4, !tbaa !32
  %239 = getelementptr inbounds %struct.ImVec2, ptr %25, i32 0, i32 1
  %240 = load float, ptr %239, align 4, !tbaa !32
  %241 = load float, ptr %9, align 4, !tbaa !9
  %242 = call float @llvm.fmuladd.f32(float %240, float %241, float %238)
  %243 = load ptr, ptr %18, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.ImVec2, ptr %243, i32 0, i32 1
  store float %242, ptr %244, align 4, !tbaa !32
  %245 = load ptr, ptr %18, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.ImVec2, ptr %245, i32 1
  store ptr %246, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %247

247:                                              ; preds = %220, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %248

248:                                              ; preds = %247, %29
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImAbsi(i32 noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !12, i64 120}
!16 = !{!"_ZTS10ImDrawList", !17, i64 0, !18, i64 16, !19, i64 32, !12, i64 48, !12, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !20, i64 88, !21, i64 104, !22, i64 120, !23, i64 136, !25, i64 168, !10, i64 192}
!17 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !12, i64 0, !12, i64 4, !6, i64 8}
!18 = !{!"_ZTS8ImVectorItE", !12, i64 0, !12, i64 4, !6, i64 8}
!19 = !{!"_ZTS8ImVectorI10ImDrawVertE", !12, i64 0, !12, i64 4, !6, i64 8}
!20 = !{!"_ZTS8ImVectorI6ImVec4E", !12, i64 0, !12, i64 4, !6, i64 8}
!21 = !{!"_ZTS8ImVectorIPvE", !12, i64 0, !12, i64 4, !6, i64 8}
!22 = !{!"_ZTS8ImVectorI6ImVec2E", !12, i64 0, !12, i64 4, !6, i64 8}
!23 = !{!"_ZTS15ImDrawCmdHeader", !24, i64 0, !6, i64 16, !12, i64 24}
!24 = !{!"_ZTS6ImVec4", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!25 = !{!"_ZTS18ImDrawListSplitter", !12, i64 0, !12, i64 4, !26, i64 8}
!26 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !12, i64 0, !12, i64 4, !6, i64 8}
!27 = !{!16, !6, i64 128}
!28 = !{!16, !6, i64 56}
!29 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!30 = !{!31, !10, i64 0}
!31 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!32 = !{!31, !10, i64 4}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = !{i8 0, i8 2}
!37 = !{}


; 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.ImVec2 = type { float, float }

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E6resizeEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(196), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10ImDrawList16_PathArcToFastExERK6ImVec2fiii(ptr noundef nonnull align 8 dereferenceable(196) %0, ptr noundef nonnull align 4 dereferenceable(8) %1, float noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #2 align 2 {
  %7 = fcmp olt float %2, 5.000000e-01
  br i1 %7, label %8, label %10

8:                                                ; preds = %6
  %9 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(8) %1)
  br label %109

10:                                               ; preds = %6
  %11 = icmp slt i32 %5, 1
  br i1 %11, label %12, label %15

12:                                               ; preds = %10
  %13 = tail call noundef i32 @_ZNK10ImDrawList27_CalcCircleAutoSegmentCountEf(ptr noundef nonnull align 8 dereferenceable(196) %0, float noundef %2)
  %14 = sdiv i32 48, %13
  br label %15

15:                                               ; preds = %12, %10
  %.0 = phi i32 [ %14, %12 ], [ %5, %10 ]
  %16 = tail call noundef i32 @_ZL7ImClampIiET_S0_S0_S0_(i32 noundef %.0, i32 noundef 1, i32 noundef 12)
  %17 = sub nsw i32 %4, %3
  %18 = tail call noundef i32 @_ZL5ImAbsi(i32 noundef %17)
  %19 = add nsw i32 %18, 1
  %20 = icmp sgt i32 %16, 1
  br i1 %20, label %21, label %32

21:                                               ; preds = %15
  %22 = sdiv i32 %18, %16
  %23 = add nsw i32 %22, 1
  %24 = srem i32 %18, %16
  %25 = icmp sgt i32 %24, 0
  br i1 %25, label %26, label %32

26:                                               ; preds = %21
  %27 = add nsw i32 %22, 2
  %28 = icmp sgt i32 %18, 0
  br i1 %28, label %29, label %32

29:                                               ; preds = %26
  %30 = sub nsw i32 %16, %24
  %.neg = sdiv i32 %30, -2
  %31 = add i32 %.neg, %16
  br label %32

32:                                               ; preds = %21, %29, %26, %15
  %.187 = phi i1 [ false, %15 ], [ true, %26 ], [ true, %29 ], [ false, %21 ]
  %.184 = phi i32 [ %19, %15 ], [ %27, %26 ], [ %27, %29 ], [ %23, %21 ]
  %.2 = phi i32 [ %16, %15 ], [ %16, %26 ], [ %31, %29 ], [ %16, %21 ]
  %33 = getelementptr inbounds i8, ptr %0, i64 120
  %34 = load i32, ptr %33, align 8, !tbaa !5
  %35 = add nsw i32 %34, %.184
  tail call void @_ZN8ImVectorI6ImVec2E6resizeEi(ptr noundef nonnull align 8 dereferenceable(16) %33, i32 noundef %35)
  %36 = getelementptr inbounds i8, ptr %0, i64 128
  %37 = load ptr, ptr %36, align 8, !tbaa !22
  %38 = load i32, ptr %33, align 8, !tbaa !5
  %39 = sub nsw i32 %38, %.184
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %struct.ImVec2, ptr %37, i64 %40
  %or.cond = icmp ugt i32 %3, 47
  br i1 %or.cond, label %42, label %46

42:                                               ; preds = %32
  %43 = srem i32 %3, 48
  %44 = icmp slt i32 %43, 0
  %45 = add nsw i32 %43, 48
  %spec.select = select i1 %44, i32 %45, i32 %43
  br label %46

46:                                               ; preds = %42, %32
  %.092 = phi i32 [ %3, %32 ], [ %spec.select, %42 ]
  %.not = icmp slt i32 %4, %3
  %47 = getelementptr inbounds i8, ptr %0, i64 56
  %48 = load ptr, ptr %47, align 8, !tbaa !23
  %49 = getelementptr inbounds i8, ptr %48, i64 64
  %50 = getelementptr inbounds i8, ptr %1, i64 4
  %51 = load float, ptr %1, align 4, !tbaa !24
  %52 = getelementptr inbounds i8, ptr %41, i64 8
  br i1 %.not, label %.preheader, label %.preheader117

.preheader117:                                    ; preds = %46
  %53 = sext i32 %.092 to i64
  %54 = getelementptr inbounds [48 x %struct.ImVec2], ptr %49, i64 0, i64 %53
  %55 = load float, ptr %50, align 4, !tbaa !26
  %56 = load <2 x float>, ptr %54, align 8, !tbaa !27
  %57 = insertelement <2 x float> poison, float %2, i64 0
  %58 = shufflevector <2 x float> %57, <2 x float> poison, <2 x i32> zeroinitializer
  %59 = insertelement <2 x float> poison, float %51, i64 0
  %60 = insertelement <2 x float> %59, float %55, i64 1
  %61 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %56, <2 x float> %58, <2 x float> %60)
  store <2 x float> %61, ptr %41, align 4, !tbaa !27
  %62 = add nsw i32 %.2, %3
  %.not113.peel = icmp sgt i32 %62, %4
  br i1 %.not113.peel, label %.loopexit, label %.peel.next

.peel.next:                                       ; preds = %.preheader117
  %63 = add nsw i32 %.092, %.2
  br label %75

.preheader:                                       ; preds = %46
  %64 = zext nneg i32 %.092 to i64
  %65 = getelementptr inbounds [48 x %struct.ImVec2], ptr %49, i64 0, i64 %64
  %66 = load float, ptr %50, align 4, !tbaa !26
  %67 = load <2 x float>, ptr %65, align 8, !tbaa !27
  %68 = insertelement <2 x float> poison, float %2, i64 0
  %69 = shufflevector <2 x float> %68, <2 x float> poison, <2 x i32> zeroinitializer
  %70 = insertelement <2 x float> poison, float %51, i64 0
  %71 = insertelement <2 x float> %70, float %66, i64 1
  %72 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %67, <2 x float> %69, <2 x float> %71)
  store <2 x float> %72, ptr %41, align 4, !tbaa !27
  %73 = sub nsw i32 %3, %.2
  %.not112.peel = icmp slt i32 %73, %4
  br i1 %.not112.peel, label %.loopexit, label %.peel.next131

.peel.next131:                                    ; preds = %.preheader
  %74 = sub nsw i32 %.092, %.2
  br label %86

75:                                               ; preds = %.peel.next, %75
  %.088121 = phi ptr [ %52, %.peel.next ], [ %83, %75 ]
  %.193120 = phi i32 [ %63, %.peel.next ], [ %85, %75 ]
  %.097119 = phi i32 [ %62, %.peel.next ], [ %84, %75 ]
  %76 = icmp sgt i32 %.193120, 47
  %77 = add nsw i32 %.193120, -48
  %spec.select114 = select i1 %76, i32 %77, i32 %.193120
  %78 = sext i32 %spec.select114 to i64
  %79 = getelementptr inbounds [48 x %struct.ImVec2], ptr %49, i64 0, i64 %78
  %80 = load <2 x float>, ptr %79, align 8, !tbaa !27
  %81 = load <2 x float>, ptr %1, align 4, !tbaa !27
  %82 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %80, <2 x float> %58, <2 x float> %81)
  store <2 x float> %82, ptr %.088121, align 4, !tbaa !27
  %83 = getelementptr inbounds i8, ptr %.088121, i64 8
  %84 = add nsw i32 %16, %.097119
  %85 = add nsw i32 %spec.select114, %16
  %.not113 = icmp sgt i32 %84, %4
  br i1 %.not113, label %.loopexit, label %75, !llvm.loop !28

86:                                               ; preds = %.peel.next131, %86
  %.189125 = phi ptr [ %52, %.peel.next131 ], [ %94, %86 ]
  %.091124 = phi i32 [ %73, %.peel.next131 ], [ %95, %86 ]
  %.395123 = phi i32 [ %74, %.peel.next131 ], [ %96, %86 ]
  %87 = icmp slt i32 %.395123, 0
  %88 = add nsw i32 %.395123, 48
  %spec.select115 = select i1 %87, i32 %88, i32 %.395123
  %89 = sext i32 %spec.select115 to i64
  %90 = getelementptr inbounds [48 x %struct.ImVec2], ptr %49, i64 0, i64 %89
  %91 = load <2 x float>, ptr %90, align 8, !tbaa !27
  %92 = load <2 x float>, ptr %1, align 4, !tbaa !27
  %93 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %91, <2 x float> %69, <2 x float> %92)
  store <2 x float> %93, ptr %.189125, align 4, !tbaa !27
  %94 = getelementptr inbounds i8, ptr %.189125, i64 8
  %95 = sub nsw i32 %.091124, %16
  %96 = sub nsw i32 %spec.select115, %16
  %.not112 = icmp slt i32 %95, %4
  br i1 %.not112, label %.loopexit, label %86, !llvm.loop !31

.loopexit:                                        ; preds = %75, %86, %.preheader117, %.preheader
  %.290 = phi ptr [ %52, %.preheader ], [ %52, %.preheader117 ], [ %94, %86 ], [ %83, %75 ]
  br i1 %.187, label %97, label %109

97:                                               ; preds = %.loopexit
  %98 = srem i32 %4, 48
  %99 = icmp slt i32 %98, 0
  %100 = add nsw i32 %98, 48
  %spec.select116 = select i1 %99, i32 %100, i32 %98
  %101 = getelementptr inbounds i8, ptr %48, i64 64
  %102 = zext nneg i32 %spec.select116 to i64
  %103 = getelementptr inbounds [48 x %struct.ImVec2], ptr %101, i64 0, i64 %102
  %104 = load <2 x float>, ptr %103, align 8, !tbaa !27
  %105 = load <2 x float>, ptr %1, align 4, !tbaa !27
  %106 = insertelement <2 x float> poison, float %2, i64 0
  %107 = shufflevector <2 x float> %106, <2 x float> poison, <2 x i32> zeroinitializer
  %108 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %104, <2 x float> %107, <2 x float> %105)
  store <2 x float> %108, ptr %.290, align 4, !tbaa !27
  br label %109

109:                                              ; preds = %.loopexit, %97, %8
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8ImVectorI6ImVec2E9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL5ImAbsi(i32 noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 x float>) #3

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

!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, !8, i64 120}
!6 = !{!"_ZTS10ImDrawList", !7, i64 0, !12, i64 16, !13, i64 32, !8, i64 48, !8, i64 52, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !14, i64 88, !15, i64 104, !16, i64 120, !17, i64 136, !20, i64 168, !19, i64 192}
!7 = !{!"_ZTS8ImVectorI9ImDrawCmdE", !8, i64 0, !8, i64 4, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"_ZTS8ImVectorItE", !8, i64 0, !8, i64 4, !11, i64 8}
!13 = !{!"_ZTS8ImVectorI10ImDrawVertE", !8, i64 0, !8, i64 4, !11, i64 8}
!14 = !{!"_ZTS8ImVectorI6ImVec4E", !8, i64 0, !8, i64 4, !11, i64 8}
!15 = !{!"_ZTS8ImVectorIPvE", !8, i64 0, !8, i64 4, !11, i64 8}
!16 = !{!"_ZTS8ImVectorI6ImVec2E", !8, i64 0, !8, i64 4, !11, i64 8}
!17 = !{!"_ZTS15ImDrawCmdHeader", !18, i64 0, !11, i64 16, !8, i64 24}
!18 = !{!"_ZTS6ImVec4", !19, i64 0, !19, i64 4, !19, i64 8, !19, i64 12}
!19 = !{!"float", !9, i64 0}
!20 = !{!"_ZTS18ImDrawListSplitter", !8, i64 0, !8, i64 4, !21, i64 8}
!21 = !{!"_ZTS8ImVectorI13ImDrawChannelE", !8, i64 0, !8, i64 4, !11, i64 8}
!22 = !{!6, !11, i64 128}
!23 = !{!6, !11, i64 56}
!24 = !{!25, !19, i64 0}
!25 = !{!"_ZTS6ImVec2", !19, i64 0, !19, i64 4}
!26 = !{!25, !19, i64 4}
!27 = !{!19, !19, i64 0}
!28 = distinct !{!28, !29, !30}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!"llvm.loop.peeled.count", i32 1}
!31 = distinct !{!31, !29, !30}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass