; LLVM IR from chdb-io/chdb :: base/glibc-compatibility/musl (lgamma)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%union.anon = type { double }

; Function Attrs: nounwind uwtable
define dso_local double @lgamma_r(double noundef %0, ptr noundef %1) #0 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %union.anon, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store double %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %22 = load double, ptr %4, align 8, !tbaa !5
  store double %22, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store double 0.000000e+00, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  store i32 1, ptr %23, align 4, !tbaa !12
  %24 = load i64, ptr %6, align 8, !tbaa !11
  %25 = lshr i64 %24, 63
  %26 = trunc i64 %25 to i32
  store i32 %26, ptr %19, align 4, !tbaa !12
  %27 = load i64, ptr %6, align 8, !tbaa !11
  %28 = lshr i64 %27, 32
  %29 = and i64 %28, 2147483647
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %18, align 4, !tbaa !12
  %31 = load i32, ptr %18, align 4, !tbaa !12
  %32 = icmp uge i32 %31, 2146435072
  br i1 %32, label %33, label %37

33:                                               ; preds = %2
  %34 = load double, ptr %4, align 8, !tbaa !5
  %35 = load double, ptr %4, align 8, !tbaa !5
  %36 = fmul double %34, %35
  store double %36, ptr %3, align 8
  store i32 1, ptr %21, align 4
  br label %367

37:                                               ; preds = %2
  %38 = load i32, ptr %18, align 4, !tbaa !12
  %39 = icmp ult i32 %38, 999292928
  br i1 %39, label %40, label %51

40:                                               ; preds = %37
  %41 = load i32, ptr %19, align 4, !tbaa !12
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %47

43:                                               ; preds = %40
  %44 = load double, ptr %4, align 8, !tbaa !5
  %45 = fneg double %44
  store double %45, ptr %4, align 8, !tbaa !5
  %46 = load ptr, ptr %5, align 8, !tbaa !9
  store i32 -1, ptr %46, align 4, !tbaa !12
  br label %47

47:                                               ; preds = %43, %40
  %48 = load double, ptr %4, align 8, !tbaa !5
  %49 = call double @log(double noundef %48) #4
  %50 = fneg double %49
  store double %50, ptr %3, align 8
  store i32 1, ptr %21, align 4
  br label %367

51:                                               ; preds = %37
  %52 = load i32, ptr %19, align 4, !tbaa !12
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %81

54:                                               ; preds = %51
  %55 = load double, ptr %4, align 8, !tbaa !5
  %56 = fneg double %55
  store double %56, ptr %4, align 8, !tbaa !5
  %57 = load double, ptr %4, align 8, !tbaa !5
  %58 = fmul double 0x400921FB54442D18, %57
  %59 = call double @sin(double noundef %58) #4
  store double %59, ptr %7, align 8, !tbaa !5
  %60 = load double, ptr %7, align 8, !tbaa !5
  %61 = fcmp oeq double %60, 0.000000e+00
  br i1 %61, label %62, label %67

62:                                               ; preds = %54
  %63 = load double, ptr %4, align 8, !tbaa !5
  %64 = load double, ptr %4, align 8, !tbaa !5
  %65 = fsub double %63, %64
  %66 = fdiv double 1.000000e+00, %65
  store double %66, ptr %3, align 8
  store i32 1, ptr %21, align 4
  br label %367

67:                                               ; preds = %54
  %68 = load double, ptr %7, align 8, !tbaa !5
  %69 = fcmp ogt double %68, 0.000000e+00
  br i1 %69, label %70, label %72

70:                                               ; preds = %67
  %71 = load ptr, ptr %5, align 8, !tbaa !9
  store i32 -1, ptr %71, align 4, !tbaa !12
  br label %75

72:                                               ; preds = %67
  %73 = load double, ptr %7, align 8, !tbaa !5
  %74 = fneg double %73
  store double %74, ptr %7, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %72, %70
  %76 = load double, ptr %7, align 8, !tbaa !5
  %77 = load double, ptr %4, align 8, !tbaa !5
  %78 = fmul double %76, %77
  %79 = fdiv double 0x400921FB54442D18, %78
  %80 = call double @log(double noundef %79) #4
  store double %80, ptr %10, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %75, %51
  %82 = load i32, ptr %18, align 4, !tbaa !12
  %83 = icmp eq i32 %82, 1072693248
  br i1 %83, label %87, label %84

84:                                               ; preds = %81
  %85 = load i32, ptr %18, align 4, !tbaa !12
  %86 = icmp eq i32 %85, 1073741824
  br i1 %86, label %87, label %92

87:                                               ; preds = %84, %81
  %88 = load i64, ptr %6, align 8, !tbaa !11
  %89 = trunc i64 %88 to i32
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %92

91:                                               ; preds = %87
  store double 0.000000e+00, ptr %16, align 8, !tbaa !5
  br label %358

92:                                               ; preds = %87, %84
  %93 = load i32, ptr %18, align 4, !tbaa !12
  %94 = icmp ult i32 %93, 1073741824
  br i1 %94, label %95, label %248

95:                                               ; preds = %92
  %96 = load i32, ptr %18, align 4, !tbaa !12
  %97 = icmp ule i32 %96, 1072483532
  br i1 %97, label %98, label %117

98:                                               ; preds = %95
  %99 = load double, ptr %4, align 8, !tbaa !5
  %100 = call double @log(double noundef %99) #4
  %101 = fneg double %100
  store double %101, ptr %16, align 8, !tbaa !5
  %102 = load i32, ptr %18, align 4, !tbaa !12
  %103 = icmp uge i32 %102, 1072130372
  br i1 %103, label %104, label %107

104:                                              ; preds = %98
  %105 = load double, ptr %4, align 8, !tbaa !5
  %106 = fsub double 1.000000e+00, %105
  store double %106, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %20, align 4, !tbaa !12
  br label %116

107:                                              ; preds = %98
  %108 = load i32, ptr %18, align 4, !tbaa !12
  %109 = icmp uge i32 %108, 1070442081
  br i1 %109, label %110, label %113

110:                                              ; preds = %107
  %111 = load double, ptr %4, align 8, !tbaa !5
  %112 = fsub double %111, 0x3FDD8B618D5AF8FC
  store double %112, ptr %8, align 8, !tbaa !5
  store i32 1, ptr %20, align 4, !tbaa !12
  br label %115

113:                                              ; preds = %107
  %114 = load double, ptr %4, align 8, !tbaa !5
  store double %114, ptr %8, align 8, !tbaa !5
  store i32 2, ptr %20, align 4, !tbaa !12
  br label %115

115:                                              ; preds = %113, %110
  br label %116

116:                                              ; preds = %115, %104
  br label %134

117:                                              ; preds = %95
  store double 0.000000e+00, ptr %16, align 8, !tbaa !5
  %118 = load i32, ptr %18, align 4, !tbaa !12
  %119 = icmp uge i32 %118, 1073460419
  br i1 %119, label %120, label %123

120:                                              ; preds = %117
  %121 = load double, ptr %4, align 8, !tbaa !5
  %122 = fsub double 2.000000e+00, %121
  store double %122, ptr %8, align 8, !tbaa !5
  store i32 0, ptr %20, align 4, !tbaa !12
  br label %133

123:                                              ; preds = %117
  %124 = load i32, ptr %18, align 4, !tbaa !12
  %125 = icmp uge i32 %124, 1072936132
  br i1 %125, label %126, label %129

126:                                              ; preds = %123
  %127 = load double, ptr %4, align 8, !tbaa !5
  %128 = fsub double %127, 0x3FF762D86356BE3F
  store double %128, ptr %8, align 8, !tbaa !5
  store i32 1, ptr %20, align 4, !tbaa !12
  br label %132

129:                                              ; preds = %123
  %130 = load double, ptr %4, align 8, !tbaa !5
  %131 = fsub double %130, 1.000000e+00
  store double %131, ptr %8, align 8, !tbaa !5
  store i32 2, ptr %20, align 4, !tbaa !12
  br label %132

132:                                              ; preds = %129, %126
  br label %133

133:                                              ; preds = %132, %120
  br label %134

134:                                              ; preds = %133, %116
  %135 = load i32, ptr %20, align 4, !tbaa !12
  switch i32 %135, label %247 [
    i32 0, label %136
    i32 1, label %171
    i32 2, label %217
  ]

136:                                              ; preds = %134
  %137 = load double, ptr %8, align 8, !tbaa !5
  %138 = load double, ptr %8, align 8, !tbaa !5
  %139 = fmul double %137, %138
  store double %139, ptr %9, align 8, !tbaa !5
  %140 = load double, ptr %9, align 8, !tbaa !5
  %141 = load double, ptr %9, align 8, !tbaa !5
  %142 = load double, ptr %9, align 8, !tbaa !5
  %143 = load double, ptr %9, align 8, !tbaa !5
  %144 = load double, ptr %9, align 8, !tbaa !5
  %145 = call double @llvm.fmuladd.f64(double %144, double 0x3EFA7074428CFA52, double 0x3F2CF2ECED10E54D)
  %146 = call double @llvm.fmuladd.f64(double %143, double %145, double 0x3F538A94116F3F5D)
  %147 = call double @llvm.fmuladd.f64(double %142, double %146, double 0x3F7E404FB68FEFE8)
  %148 = call double @llvm.fmuladd.f64(double %141, double %147, double 0x3FB13E001A5562A7)
  %149 = call double @llvm.fmuladd.f64(double %140, double %148, double 0x3FB3C467E37DB0C8)
  store double %149, ptr %12, align 8, !tbaa !5
  %150 = load double, ptr %9, align 8, !tbaa !5
  %151 = load double, ptr %9, align 8, !tbaa !5
  %152 = load double, ptr %9, align 8, !tbaa !5
  %153 = load double, ptr %9, align 8, !tbaa !5
  %154 = load double, ptr %9, align 8, !tbaa !5
  %155 = load double, ptr %9, align 8, !tbaa !5
  %156 = call double @llvm.fmuladd.f64(double %155, double 0x3F07858E90A45837, double 0x3F1C5088987DFB07)
  %157 = call double @llvm.fmuladd.f64(double %154, double %156, double 0x3F40B6C689B99C00)
  %158 = call double @llvm.fmuladd.f64(double %153, double %157, double 0x3F67ADD8CCB7926B)
  %159 = call double @llvm.fmuladd.f64(double %152, double %158, double 0x3F951322AC92547B)
  %160 = call double @llvm.fmuladd.f64(double %151, double %159, double 0x3FD4A34CC4A60FAD)
  %161 = fmul double %150, %160
  store double %161, ptr %13, align 8, !tbaa !5
  %162 = load double, ptr %8, align 8, !tbaa !5
  %163 = load double, ptr %12, align 8, !tbaa !5
  %164 = load double, ptr %13, align 8, !tbaa !5
  %165 = call double @llvm.fmuladd.f64(double %162, double %163, double %164)
  store double %165, ptr %11, align 8, !tbaa !5
  %166 = load double, ptr %11, align 8, !tbaa !5
  %167 = load double, ptr %8, align 8, !tbaa !5
  %168 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %167, double %166)
  %169 = load double, ptr %16, align 8, !tbaa !5
  %170 = fadd double %169, %168
  store double %170, ptr %16, align 8, !tbaa !5
  br label %247

171:                                              ; preds = %134
  %172 = load double, ptr %8, align 8, !tbaa !5
  %173 = load double, ptr %8, align 8, !tbaa !5
  %174 = fmul double %172, %173
  store double %174, ptr %9, align 8, !tbaa !5
  %175 = load double, ptr %9, align 8, !tbaa !5
  %176 = load double, ptr %8, align 8, !tbaa !5
  %177 = fmul double %175, %176
  store double %177, ptr %17, align 8, !tbaa !5
  %178 = load double, ptr %17, align 8, !tbaa !5
  %179 = load double, ptr %17, align 8, !tbaa !5
  %180 = load double, ptr %17, align 8, !tbaa !5
  %181 = load double, ptr %17, align 8, !tbaa !5
  %182 = call double @llvm.fmuladd.f64(double %181, double 0x3F34AF6D6C0EBBF7, double 0xBF56FE8EBF2D1AF1)
  %183 = call double @llvm.fmuladd.f64(double %180, double %182, double 0x3F78FCE0E370E344)
  %184 = call double @llvm.fmuladd.f64(double %179, double %183, double 0xBFA0C9A8DF35B713)
  %185 = call double @llvm.fmuladd.f64(double %178, double %184, double 0x3FDEF72BC8EE38A2)
  store double %185, ptr %12, align 8, !tbaa !5
  %186 = load double, ptr %17, align 8, !tbaa !5
  %187 = load double, ptr %17, align 8, !tbaa !5
  %188 = load double, ptr %17, align 8, !tbaa !5
  %189 = load double, ptr %17, align 8, !tbaa !5
  %190 = call double @llvm.fmuladd.f64(double %189, double 0xBF347F24ECC38C38, double 0x3F4CDF0CEF61A8E9)
  %191 = call double @llvm.fmuladd.f64(double %188, double %190, double 0xBF6E2EFFB3E914D7)
  %192 = call double @llvm.fmuladd.f64(double %187, double %191, double 0x3F9266E7970AF9EC)
  %193 = call double @llvm.fmuladd.f64(double %186, double %192, double 0xBFC2E4278DC6C509)
  store double %193, ptr %13, align 8, !tbaa !5
  %194 = load double, ptr %17, align 8, !tbaa !5
  %195 = load double, ptr %17, align 8, !tbaa !5
  %196 = load double, ptr %17, align 8, !tbaa !5
  %197 = load double, ptr %17, align 8, !tbaa !5
  %198 = call double @llvm.fmuladd.f64(double %197, double 0x3F35FD3EE8C2D3F4, double 0xBF41A6109C73E0EC)
  %199 = call double @llvm.fmuladd.f64(double %196, double %198, double 0x3F6282D32E15C915)
  %200 = call double @llvm.fmuladd.f64(double %195, double %199, double 0xBF851F9FBA91EC6A)
  %201 = call double @llvm.fmuladd.f64(double %194, double %200, double 0x3FB08B4294D5419B)
  store double %201, ptr %14, align 8, !tbaa !5
  %202 = load double, ptr %9, align 8, !tbaa !5
  %203 = load double, ptr %12, align 8, !tbaa !5
  %204 = load double, ptr %17, align 8, !tbaa !5
  %205 = load double, ptr %13, align 8, !tbaa !5
  %206 = load double, ptr %8, align 8, !tbaa !5
  %207 = load double, ptr %14, align 8, !tbaa !5
  %208 = call double @llvm.fmuladd.f64(double %206, double %207, double %205)
  %209 = fneg double %204
  %210 = call double @llvm.fmuladd.f64(double %209, double %208, double 0xBC50C7CAA48A971F)
  %211 = fneg double %210
  %212 = call double @llvm.fmuladd.f64(double %202, double %203, double %211)
  store double %212, ptr %11, align 8, !tbaa !5
  %213 = load double, ptr %11, align 8, !tbaa !5
  %214 = fadd double 0xBFBF19B9BCC38A42, %213
  %215 = load double, ptr %16, align 8, !tbaa !5
  %216 = fadd double %215, %214
  store double %216, ptr %16, align 8, !tbaa !5
  br label %247

217:                                              ; preds = %134
  %218 = load double, ptr %8, align 8, !tbaa !5
  %219 = load double, ptr %8, align 8, !tbaa !5
  %220 = load double, ptr %8, align 8, !tbaa !5
  %221 = load double, ptr %8, align 8, !tbaa !5
  %222 = load double, ptr %8, align 8, !tbaa !5
  %223 = load double, ptr %8, align 8, !tbaa !5
  %224 = call double @llvm.fmuladd.f64(double %223, double 0x3F8B678BBF2BAB09, double 0x3FCD4EAEF6010924)
  %225 = call double @llvm.fmuladd.f64(double %222, double %224, double 0x3FEF497644EA8450)
  %226 = call double @llvm.fmuladd.f64(double %221, double %225, double 0x3FF7475CD119BD6F)
  %227 = call double @llvm.fmuladd.f64(double %220, double %226, double 0x3FE4401E8B005DFF)
  %228 = call double @llvm.fmuladd.f64(double %219, double %227, double 0xBFB3C467E37DB0C8)
  %229 = fmul double %218, %228
  store double %229, ptr %12, align 8, !tbaa !5
  %230 = load double, ptr %8, align 8, !tbaa !5
  %231 = load double, ptr %8, align 8, !tbaa !5
  %232 = load double, ptr %8, align 8, !tbaa !5
  %233 = load double, ptr %8, align 8, !tbaa !5
  %234 = load double, ptr %8, align 8, !tbaa !5
  %235 = call double @llvm.fmuladd.f64(double %234, double 0x3F6A5ABB57D0CF61, double 0x3FBAAE55D6537C88)
  %236 = call double @llvm.fmuladd.f64(double %233, double %235, double 0x3FE89DFBE45050AF)
  %237 = call double @llvm.fmuladd.f64(double %232, double %236, double 0x40010725A42B18F5)
  %238 = call double @llvm.fmuladd.f64(double %231, double %237, double 0x4003A5D7C2BD619C)
  %239 = call double @llvm.fmuladd.f64(double %230, double %238, double 1.000000e+00)
  store double %239, ptr %13, align 8, !tbaa !5
  %240 = load double, ptr %8, align 8, !tbaa !5
  %241 = load double, ptr %12, align 8, !tbaa !5
  %242 = load double, ptr %13, align 8, !tbaa !5
  %243 = fdiv double %241, %242
  %244 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %240, double %243)
  %245 = load double, ptr %16, align 8, !tbaa !5
  %246 = fadd double %245, %244
  store double %246, ptr %16, align 8, !tbaa !5
  br label %247

247:                                              ; preds = %217, %171, %136, %134
  br label %357

248:                                              ; preds = %92
  %249 = load i32, ptr %18, align 4, !tbaa !12
  %250 = icmp ult i32 %249, 1075838976
  br i1 %250, label %251, label %320

251:                                              ; preds = %248
  %252 = load double, ptr %4, align 8, !tbaa !5
  %253 = fptosi double %252 to i32
  store i32 %253, ptr %20, align 4, !tbaa !12
  %254 = load double, ptr %4, align 8, !tbaa !5
  %255 = load i32, ptr %20, align 4, !tbaa !12
  %256 = sitofp i32 %255 to double
  %257 = fsub double %254, %256
  store double %257, ptr %8, align 8, !tbaa !5
  %258 = load double, ptr %8, align 8, !tbaa !5
  %259 = load double, ptr %8, align 8, !tbaa !5
  %260 = load double, ptr %8, align 8, !tbaa !5
  %261 = load double, ptr %8, align 8, !tbaa !5
  %262 = load double, ptr %8, align 8, !tbaa !5
  %263 = load double, ptr %8, align 8, !tbaa !5
  %264 = load double, ptr %8, align 8, !tbaa !5
  %265 = call double @llvm.fmuladd.f64(double %264, double 0x3F00BFECDD17E945, double 0x3F5E26B67368F239)
  %266 = call double @llvm.fmuladd.f64(double %263, double %265, double 0x3F9B481C7E939961)
  %267 = call double @llvm.fmuladd.f64(double %262, double %266, double 0x3FC2BB9CBEE5F2F7)
  %268 = call double @llvm.fmuladd.f64(double %261, double %267, double 0x3FD4D98F4F139F59)
  %269 = call double @llvm.fmuladd.f64(double %260, double %268, double 0x3FCB848B36E20878)
  %270 = call double @llvm.fmuladd.f64(double %259, double %269, double 0xBFB3C467E37DB0C8)
  %271 = fmul double %258, %270
  store double %271, ptr %11, align 8, !tbaa !5
  %272 = load double, ptr %8, align 8, !tbaa !5
  %273 = load double, ptr %8, align 8, !tbaa !5
  %274 = load double, ptr %8, align 8, !tbaa !5
  %275 = load double, ptr %8, align 8, !tbaa !5
  %276 = load double, ptr %8, align 8, !tbaa !5
  %277 = load double, ptr %8, align 8, !tbaa !5
  %278 = call double @llvm.fmuladd.f64(double %277, double 0x3EDEBAF7A5B38140, double 0x3F497DDACA41A95B)
  %279 = call double @llvm.fmuladd.f64(double %276, double %278, double 0x3F9317EA742ED475)
  %280 = call double @llvm.fmuladd.f64(double %275, double %279, double 0x3FC601EDCCFBDF27)
  %281 = call double @llvm.fmuladd.f64(double %274, double %280, double 0x3FE71A1893D3DCDC)
  %282 = call double @llvm.fmuladd.f64(double %273, double %281, double 0x3FF645A762C4AB74)
  %283 = call double @llvm.fmuladd.f64(double %272, double %282, double 1.000000e+00)
  store double %283, ptr %15, align 8, !tbaa !5
  %284 = load double, ptr %8, align 8, !tbaa !5
  %285 = load double, ptr %11, align 8, !tbaa !5
  %286 = load double, ptr %15, align 8, !tbaa !5
  %287 = fdiv double %285, %286
  %288 = call double @llvm.fmuladd.f64(double 5.000000e-01, double %284, double %287)
  store double %288, ptr %16, align 8, !tbaa !5
  store double 1.000000e+00, ptr %9, align 8, !tbaa !5
  %289 = load i32, ptr %20, align 4, !tbaa !12
  switch i32 %289, label %319 [
    i32 7, label %290
    i32 6, label %295
    i32 5, label %300
    i32 4, label %305
    i32 3, label %310
  ]

290:                                              ; preds = %251
  %291 = load double, ptr %8, align 8, !tbaa !5
  %292 = fadd double %291, 6.000000e+00
  %293 = load double, ptr %9, align 8, !tbaa !5
  %294 = fmul double %293, %292
  store double %294, ptr %9, align 8, !tbaa !5
  br label %295

295:                                              ; preds = %290, %251
  %296 = load double, ptr %8, align 8, !tbaa !5
  %297 = fadd double %296, 5.000000e+00
  %298 = load double, ptr %9, align 8, !tbaa !5
  %299 = fmul double %298, %297
  store double %299, ptr %9, align 8, !tbaa !5
  br label %300

300:                                              ; preds = %295, %251
  %301 = load double, ptr %8, align 8, !tbaa !5
  %302 = fadd double %301, 4.000000e+00
  %303 = load double, ptr %9, align 8, !tbaa !5
  %304 = fmul double %303, %302
  store double %304, ptr %9, align 8, !tbaa !5
  br label %305

305:                                              ; preds = %300, %251
  %306 = load double, ptr %8, align 8, !tbaa !5
  %307 = fadd double %306, 3.000000e+00
  %308 = load double, ptr %9, align 8, !tbaa !5
  %309 = fmul double %308, %307
  store double %309, ptr %9, align 8, !tbaa !5
  br label %310

310:                                              ; preds = %305, %251
  %311 = load double, ptr %8, align 8, !tbaa !5
  %312 = fadd double %311, 2.000000e+00
  %313 = load double, ptr %9, align 8, !tbaa !5
  %314 = fmul double %313, %312
  store double %314, ptr %9, align 8, !tbaa !5
  %315 = load double, ptr %9, align 8, !tbaa !5
  %316 = call double @log(double noundef %315) #4
  %317 = load double, ptr %16, align 8, !tbaa !5
  %318 = fadd double %317, %316
  store double %318, ptr %16, align 8, !tbaa !5
  br label %319

319:                                              ; preds = %310, %251
  br label %356

320:                                              ; preds = %248
  %321 = load i32, ptr %18, align 4, !tbaa !12
  %322 = icmp ult i32 %321, 1133510656
  br i1 %322, label %323, label %349

323:                                              ; preds = %320
  %324 = load double, ptr %4, align 8, !tbaa !5
  %325 = call double @log(double noundef %324) #4
  store double %325, ptr %7, align 8, !tbaa !5
  %326 = load double, ptr %4, align 8, !tbaa !5
  %327 = fdiv double 1.000000e+00, %326
  store double %327, ptr %9, align 8, !tbaa !5
  %328 = load double, ptr %9, align 8, !tbaa !5
  %329 = load double, ptr %9, align 8, !tbaa !5
  %330 = fmul double %328, %329
  store double %330, ptr %8, align 8, !tbaa !5
  %331 = load double, ptr %9, align 8, !tbaa !5
  %332 = load double, ptr %8, align 8, !tbaa !5
  %333 = load double, ptr %8, align 8, !tbaa !5
  %334 = load double, ptr %8, align 8, !tbaa !5
  %335 = load double, ptr %8, align 8, !tbaa !5
  %336 = load double, ptr %8, align 8, !tbaa !5
  %337 = call double @llvm.fmuladd.f64(double %336, double 0xBF5AB89D0B9E43E4, double 0x3F4B67BA4CDAD5D1)
  %338 = call double @llvm.fmuladd.f64(double %335, double %337, double 0xBF4380CB8C0FE741)
  %339 = call double @llvm.fmuladd.f64(double %334, double %338, double 0x3F4A019F98CF38B6)
  %340 = call double @llvm.fmuladd.f64(double %333, double %339, double 0xBF66C16C16B02E5C)
  %341 = call double @llvm.fmuladd.f64(double %332, double %340, double 0x3FB555555555553B)
  %342 = call double @llvm.fmuladd.f64(double %331, double %341, double 0x3FDACFE390C97D69)
  store double %342, ptr %17, align 8, !tbaa !5
  %343 = load double, ptr %4, align 8, !tbaa !5
  %344 = fsub double %343, 5.000000e-01
  %345 = load double, ptr %7, align 8, !tbaa !5
  %346 = fsub double %345, 1.000000e+00
  %347 = load double, ptr %17, align 8, !tbaa !5
  %348 = call double @llvm.fmuladd.f64(double %344, double %346, double %347)
  store double %348, ptr %16, align 8, !tbaa !5
  br label %355

349:                                              ; preds = %320
  %350 = load double, ptr %4, align 8, !tbaa !5
  %351 = load double, ptr %4, align 8, !tbaa !5
  %352 = call double @log(double noundef %351) #4
  %353 = fsub double %352, 1.000000e+00
  %354 = fmul double %350, %353
  store double %354, ptr %16, align 8, !tbaa !5
  br label %355

355:                                              ; preds = %349, %323
  br label %356

356:                                              ; preds = %355, %319
  br label %357

357:                                              ; preds = %356, %247
  br label %358

358:                                              ; preds = %357, %91
  %359 = load i32, ptr %19, align 4, !tbaa !12
  %360 = icmp ne i32 %359, 0
  br i1 %360, label %361, label %365

361:                                              ; preds = %358
  %362 = load double, ptr %10, align 8, !tbaa !5
  %363 = load double, ptr %16, align 8, !tbaa !5
  %364 = fsub double %362, %363
  store double %364, ptr %16, align 8, !tbaa !5
  br label %365

365:                                              ; preds = %361, %358
  %366 = load double, ptr %16, align 8, !tbaa !5
  store double %366, ptr %3, align 8
  store i32 1, ptr %21, align 4
  br label %367

367:                                              ; preds = %365, %62, %47, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %368 = load double, ptr %3, align 8
  ret double %368
}

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

; Function Attrs: nounwind
declare double @log(double noundef) #2

; Function Attrs: nounwind
declare double @sin(double noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

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

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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}


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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write) uwtable
define dso_local double @lgamma_r(double noundef %0, ptr nocapture noundef writeonly %1) local_unnamed_addr #0 {
  store i32 1, ptr %1, align 4, !tbaa !5
  %3 = bitcast double %0 to i64
  %4 = lshr i64 %3, 32
  %5 = trunc nuw i64 %4 to i32
  %6 = and i32 %5, 2147483647
  %7 = icmp ugt i32 %6, 2146435071
  br i1 %7, label %8, label %10

8:                                                ; preds = %2
  %9 = fmul double %0, %0
  br label %168

10:                                               ; preds = %2
  %11 = icmp ult i32 %6, 999292928
  %.not166 = icmp sgt i64 %3, -1
  br i1 %11, label %12, label %18

12:                                               ; preds = %10
  br i1 %.not166, label %15, label %13

13:                                               ; preds = %12
  %14 = fneg double %0
  store i32 -1, ptr %1, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %13, %12
  %.0155 = phi double [ %14, %13 ], [ %0, %12 ]
  %16 = tail call double @log(double noundef %.0155) #3
  %17 = fneg double %16
  br label %168

18:                                               ; preds = %10
  br i1 %.not166, label %36, label %19

19:                                               ; preds = %18
  %20 = fneg double %0
  %21 = fmul double %0, 0xC00921FB54442D18
  %22 = tail call double @sin(double noundef %21) #3
  %23 = fcmp oeq double %22, 0.000000e+00
  br i1 %23, label %24, label %27

24:                                               ; preds = %19
  %25 = fsub double %0, %0
  %26 = fdiv double 1.000000e+00, %25
  br label %168

27:                                               ; preds = %19
  %28 = fcmp ogt double %22, 0.000000e+00
  br i1 %28, label %29, label %30

29:                                               ; preds = %27
  store i32 -1, ptr %1, align 4, !tbaa !5
  br label %32

30:                                               ; preds = %27
  %31 = fneg double %22
  br label %32

32:                                               ; preds = %30, %29
  %.0158 = phi double [ %22, %29 ], [ %31, %30 ]
  %33 = fmul double %.0158, %20
  %34 = fdiv double 0x400921FB54442D18, %33
  %35 = tail call double @log(double noundef %34) #3
  br label %36

36:                                               ; preds = %32, %18
  %.0160 = phi double [ %35, %32 ], [ 0.000000e+00, %18 ]
  %.1 = phi double [ %20, %32 ], [ %0, %18 ]
  %37 = icmp eq i32 %6, 1072693248
  %38 = icmp eq i32 %6, 1073741824
  %or.cond = or i1 %37, %38
  %39 = and i64 %3, 4294967295
  %40 = icmp eq i64 %39, 0
  %or.cond4 = and i1 %40, %or.cond
  br i1 %or.cond4, label %166, label %41

41:                                               ; preds = %36
  %42 = icmp ult i32 %6, 1073741824
  br i1 %42, label %43, label %111

43:                                               ; preds = %41
  %44 = icmp ult i32 %6, 1072483533
  br i1 %44, label %45, label %51

45:                                               ; preds = %43
  %46 = tail call double @log(double noundef %.1) #3
  %47 = fneg double %46
  %48 = icmp ugt i32 %6, 1072130371
  br i1 %48, label %57, label %49

49:                                               ; preds = %45
  %50 = icmp ugt i32 %6, 1070442080
  br i1 %50, label %73, label %96

51:                                               ; preds = %43
  %52 = icmp ugt i32 %6, 1073460418
  br i1 %52, label %57, label %53

53:                                               ; preds = %51
  %54 = icmp ugt i32 %6, 1072936131
  br i1 %54, label %73, label %55

55:                                               ; preds = %53
  %56 = fadd double %.1, -1.000000e+00
  br label %96

57:                                               ; preds = %51, %45
  %.pn = phi double [ 1.000000e+00, %45 ], [ 2.000000e+00, %51 ]
  %.0156.ph = phi double [ %47, %45 ], [ 0.000000e+00, %51 ]
  %.0159.ph = fsub double %.pn, %.1
  %58 = fmul double %.0159.ph, %.0159.ph
  %59 = tail call double @llvm.fmuladd.f64(double %58, double 0x3EFA7074428CFA52, double 0x3F2CF2ECED10E54D)
  %60 = tail call double @llvm.fmuladd.f64(double %58, double %59, double 0x3F538A94116F3F5D)
  %61 = tail call double @llvm.fmuladd.f64(double %58, double %60, double 0x3F7E404FB68FEFE8)
  %62 = tail call double @llvm.fmuladd.f64(double %58, double %61, double 0x3FB13E001A5562A7)
  %63 = tail call double @llvm.fmuladd.f64(double %58, double %62, double 0x3FB3C467E37DB0C8)
  %64 = tail call double @llvm.fmuladd.f64(double %58, double 0x3F07858E90A45837, double 0x3F1C5088987DFB07)
  %65 = tail call double @llvm.fmuladd.f64(double %58, double %64, double 0x3F40B6C689B99C00)
  %66 = tail call double @llvm.fmuladd.f64(double %58, double %65, double 0x3F67ADD8CCB7926B)
  %67 = tail call double @llvm.fmuladd.f64(double %58, double %66, double 0x3F951322AC92547B)
  %68 = tail call double @llvm.fmuladd.f64(double %58, double %67, double 0x3FD4A34CC4A60FAD)
  %69 = fmul double %58, %68
  %70 = tail call double @llvm.fmuladd.f64(double %.0159.ph, double %63, double %69)
  %71 = tail call double @llvm.fmuladd.f64(double %.0159.ph, double -5.000000e-01, double %70)
  %72 = fadd double %.0156.ph, %71
  br label %166

73:                                               ; preds = %53, %49
  %.sink = phi double [ 0xBFDD8B618D5AF8FC, %49 ], [ 0xBFF762D86356BE3F, %53 ]
  %.0156.ph174 = phi double [ %47, %49 ], [ 0.000000e+00, %53 ]
  %74 = fadd double %.1, %.sink
  %75 = fmul double %74, %74
  %76 = fmul double %74, %75
  %77 = tail call double @llvm.fmuladd.f64(double %76, double 0x3F34AF6D6C0EBBF7, double 0xBF56FE8EBF2D1AF1)
  %78 = tail call double @llvm.fmuladd.f64(double %76, double %77, double 0x3F78FCE0E370E344)
  %79 = tail call double @llvm.fmuladd.f64(double %76, double %78, double 0xBFA0C9A8DF35B713)
  %80 = tail call double @llvm.fmuladd.f64(double %76, double %79, double 0x3FDEF72BC8EE38A2)
  %81 = tail call double @llvm.fmuladd.f64(double %76, double 0xBF347F24ECC38C38, double 0x3F4CDF0CEF61A8E9)
  %82 = tail call double @llvm.fmuladd.f64(double %76, double %81, double 0xBF6E2EFFB3E914D7)
  %83 = tail call double @llvm.fmuladd.f64(double %76, double %82, double 0x3F9266E7970AF9EC)
  %84 = tail call double @llvm.fmuladd.f64(double %76, double %83, double 0xBFC2E4278DC6C509)
  %85 = tail call double @llvm.fmuladd.f64(double %76, double 0x3F35FD3EE8C2D3F4, double 0xBF41A6109C73E0EC)
  %86 = tail call double @llvm.fmuladd.f64(double %76, double %85, double 0x3F6282D32E15C915)
  %87 = tail call double @llvm.fmuladd.f64(double %76, double %86, double 0xBF851F9FBA91EC6A)
  %88 = tail call double @llvm.fmuladd.f64(double %76, double %87, double 0x3FB08B4294D5419B)
  %89 = tail call double @llvm.fmuladd.f64(double %74, double %88, double %84)
  %90 = fneg double %76
  %91 = tail call double @llvm.fmuladd.f64(double %90, double %89, double 0xBC50C7CAA48A971F)
  %92 = fneg double %91
  %93 = tail call double @llvm.fmuladd.f64(double %75, double %80, double %92)
  %94 = fadd double %93, 0xBFBF19B9BCC38A42
  %95 = fadd double %.0156.ph174, %94
  br label %166

96:                                               ; preds = %55, %49
  %.0159 = phi double [ %56, %55 ], [ %.1, %49 ]
  %.0156 = phi double [ 0.000000e+00, %55 ], [ %47, %49 ]
  %97 = tail call double @llvm.fmuladd.f64(double %.0159, double 0x3F8B678BBF2BAB09, double 0x3FCD4EAEF6010924)
  %98 = tail call double @llvm.fmuladd.f64(double %.0159, double %97, double 0x3FEF497644EA8450)
  %99 = tail call double @llvm.fmuladd.f64(double %.0159, double %98, double 0x3FF7475CD119BD6F)
  %100 = tail call double @llvm.fmuladd.f64(double %.0159, double %99, double 0x3FE4401E8B005DFF)
  %101 = tail call double @llvm.fmuladd.f64(double %.0159, double %100, double 0xBFB3C467E37DB0C8)
  %102 = fmul double %.0159, %101
  %103 = tail call double @llvm.fmuladd.f64(double %.0159, double 0x3F6A5ABB57D0CF61, double 0x3FBAAE55D6537C88)
  %104 = tail call double @llvm.fmuladd.f64(double %.0159, double %103, double 0x3FE89DFBE45050AF)
  %105 = tail call double @llvm.fmuladd.f64(double %.0159, double %104, double 0x40010725A42B18F5)
  %106 = tail call double @llvm.fmuladd.f64(double %.0159, double %105, double 0x4003A5D7C2BD619C)
  %107 = tail call double @llvm.fmuladd.f64(double %.0159, double %106, double 1.000000e+00)
  %108 = fdiv double %102, %107
  %109 = tail call double @llvm.fmuladd.f64(double %.0159, double -5.000000e-01, double %108)
  %110 = fadd double %.0156, %109
  br label %166

111:                                              ; preds = %41
  %112 = icmp ult i32 %6, 1075838976
  br i1 %112, label %113, label %148

113:                                              ; preds = %111
  %114 = fptosi double %.1 to i32
  %115 = sitofp i32 %114 to double
  %116 = fsub double %.1, %115
  %117 = tail call double @llvm.fmuladd.f64(double %116, double 0x3F00BFECDD17E945, double 0x3F5E26B67368F239)
  %118 = tail call double @llvm.fmuladd.f64(double %116, double %117, double 0x3F9B481C7E939961)
  %119 = tail call double @llvm.fmuladd.f64(double %116, double %118, double 0x3FC2BB9CBEE5F2F7)
  %120 = tail call double @llvm.fmuladd.f64(double %116, double %119, double 0x3FD4D98F4F139F59)
  %121 = tail call double @llvm.fmuladd.f64(double %116, double %120, double 0x3FCB848B36E20878)
  %122 = tail call double @llvm.fmuladd.f64(double %116, double %121, double 0xBFB3C467E37DB0C8)
  %123 = fmul double %116, %122
  %124 = tail call double @llvm.fmuladd.f64(double %116, double 0x3EDEBAF7A5B38140, double 0x3F497DDACA41A95B)
  %125 = tail call double @llvm.fmuladd.f64(double %116, double %124, double 0x3F9317EA742ED475)
  %126 = tail call double @llvm.fmuladd.f64(double %116, double %125, double 0x3FC601EDCCFBDF27)
  %127 = tail call double @llvm.fmuladd.f64(double %116, double %126, double 0x3FE71A1893D3DCDC)
  %128 = tail call double @llvm.fmuladd.f64(double %116, double %127, double 0x3FF645A762C4AB74)
  %129 = tail call double @llvm.fmuladd.f64(double %116, double %128, double 1.000000e+00)
  %130 = fdiv double %123, %129
  %131 = tail call double @llvm.fmuladd.f64(double %116, double 5.000000e-01, double %130)
  switch i32 %114, label %166 [
    i32 7, label %132
    i32 6, label %134
    i32 5, label %137
    i32 4, label %140
    i32 3, label %143
  ]

132:                                              ; preds = %113
  %133 = fadd double %116, 6.000000e+00
  br label %134

134:                                              ; preds = %132, %113
  %.0161 = phi double [ 1.000000e+00, %113 ], [ %133, %132 ]
  %135 = fadd double %116, 5.000000e+00
  %136 = fmul double %135, %.0161
  br label %137

137:                                              ; preds = %134, %113
  %.1162 = phi double [ 1.000000e+00, %113 ], [ %136, %134 ]
  %138 = fadd double %116, 4.000000e+00
  %139 = fmul double %138, %.1162
  br label %140

140:                                              ; preds = %137, %113
  %.2163 = phi double [ 1.000000e+00, %113 ], [ %139, %137 ]
  %141 = fadd double %116, 3.000000e+00
  %142 = fmul double %141, %.2163
  br label %143

143:                                              ; preds = %140, %113
  %.3 = phi double [ 1.000000e+00, %113 ], [ %142, %140 ]
  %144 = fadd double %116, 2.000000e+00
  %145 = fmul double %144, %.3
  %146 = tail call double @log(double noundef %145) #3
  %147 = fadd double %131, %146
  br label %166

148:                                              ; preds = %111
  %149 = icmp ult i32 %6, 1133510656
  %150 = tail call double @log(double noundef %.1) #3
  br i1 %149, label %151, label %163

151:                                              ; preds = %148
  %152 = fdiv double 1.000000e+00, %.1
  %153 = fmul double %152, %152
  %154 = tail call double @llvm.fmuladd.f64(double %153, double 0xBF5AB89D0B9E43E4, double 0x3F4B67BA4CDAD5D1)
  %155 = tail call double @llvm.fmuladd.f64(double %153, double %154, double 0xBF4380CB8C0FE741)
  %156 = tail call double @llvm.fmuladd.f64(double %153, double %155, double 0x3F4A019F98CF38B6)
  %157 = tail call double @llvm.fmuladd.f64(double %153, double %156, double 0xBF66C16C16B02E5C)
  %158 = tail call double @llvm.fmuladd.f64(double %153, double %157, double 0x3FB555555555553B)
  %159 = tail call double @llvm.fmuladd.f64(double %152, double %158, double 0x3FDACFE390C97D69)
  %160 = fadd double %.1, -5.000000e-01
  %161 = fadd double %150, -1.000000e+00
  %162 = tail call double @llvm.fmuladd.f64(double %160, double %161, double %159)
  br label %166

163:                                              ; preds = %148
  %164 = fadd double %150, -1.000000e+00
  %165 = fmul double %.1, %164
  br label %166

166:                                              ; preds = %36, %96, %73, %57, %151, %163, %113, %143
  %.1157 = phi double [ %110, %96 ], [ %95, %73 ], [ %72, %57 ], [ %131, %113 ], [ %147, %143 ], [ %162, %151 ], [ %165, %163 ], [ 0.000000e+00, %36 ]
  %167 = fsub double %.0160, %.1157
  %.2 = select i1 %.not166, double %.1157, double %167
  br label %168

168:                                              ; preds = %166, %24, %15, %8
  %.0154 = phi double [ %9, %8 ], [ %17, %15 ], [ %26, %24 ], [ %.2, %166 ]
  ret double %.0154
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

attributes #0 = { mustprogress nofree nounwind willreturn memory(write) 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 nofree nounwind willreturn memory(write) "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}


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