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

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

@A = external hidden constant [33 x x86_fp80], align 16
@B = external hidden constant [17 x x86_fp80], align 16
@P = external hidden constant [4 x x86_fp80], align 16
@Q = external hidden constant [3 x x86_fp80], align 16
@twom10000 = external hidden constant x86_fp80, align 16
@R = external hidden constant [7 x x86_fp80], align 16

; Function Attrs: nounwind uwtable
define dso_local x86_fp80 @powl(x86_fp80 noundef %0, x86_fp80 noundef %1) #0 {
  %3 = alloca x86_fp80, align 16
  %4 = alloca x86_fp80, align 16
  %5 = alloca x86_fp80, align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca x86_fp80, align 16
  %12 = alloca x86_fp80, align 16
  %13 = alloca x86_fp80, align 16
  %14 = alloca x86_fp80, align 16
  %15 = alloca x86_fp80, align 16
  %16 = alloca x86_fp80, align 16
  %17 = alloca x86_fp80, align 16
  %18 = alloca x86_fp80, align 16
  %19 = alloca i32, align 4
  store x86_fp80 %0, ptr %4, align 16, !tbaa !5
  store x86_fp80 %1, ptr %5, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #5
  store volatile x86_fp80 0xK00000000000000000000, ptr %11, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  store x86_fp80 0xK00000000000000000000, ptr %12, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #5
  store x86_fp80 0xK00000000000000000000, ptr %13, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #5
  store x86_fp80 0xK00000000000000000000, ptr %14, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  store x86_fp80 0xK00000000000000000000, ptr %15, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  store x86_fp80 0xK00000000000000000000, ptr %16, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  store x86_fp80 0xK00000000000000000000, ptr %17, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  store x86_fp80 0xK00000000000000000000, ptr %18, align 16, !tbaa !5
  %20 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %21 = call i1 @llvm.is.fpclass.f80(x86_fp80 %20, i32 3)
  br i1 %21, label %22, label %31

22:                                               ; preds = %2
  %23 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %24 = call i1 @llvm.is.fpclass.f80(x86_fp80 %23, i32 3)
  br i1 %24, label %29, label %25

25:                                               ; preds = %22
  %26 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %27 = fcmp oeq x86_fp80 %26, 0xK00000000000000000000
  br i1 %27, label %28, label %29

28:                                               ; preds = %25
  store x86_fp80 0xK3FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

29:                                               ; preds = %25, %22
  %30 = load x86_fp80, ptr %4, align 16, !tbaa !5
  store x86_fp80 %30, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

31:                                               ; preds = %2
  %32 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %33 = call i1 @llvm.is.fpclass.f80(x86_fp80 %32, i32 3)
  br i1 %33, label %34, label %40

34:                                               ; preds = %31
  %35 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %36 = fcmp oeq x86_fp80 %35, 0xK3FFF8000000000000000
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  store x86_fp80 0xK3FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

38:                                               ; preds = %34
  %39 = load x86_fp80, ptr %5, align 16, !tbaa !5
  store x86_fp80 %39, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

40:                                               ; preds = %31
  %41 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %42 = fcmp oeq x86_fp80 %41, 0xK3FFF8000000000000000
  br i1 %42, label %43, label %44

43:                                               ; preds = %40
  store x86_fp80 0xK3FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

44:                                               ; preds = %40
  %45 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %46 = fcmp oeq x86_fp80 %45, 0xKBFFF8000000000000000
  br i1 %46, label %47, label %51

47:                                               ; preds = %44
  %48 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %49 = call i1 @llvm.is.fpclass.f80(x86_fp80 %48, i32 504)
  br i1 %49, label %51, label %50

50:                                               ; preds = %47
  store x86_fp80 0xK3FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

51:                                               ; preds = %47, %44
  %52 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %53 = fcmp oeq x86_fp80 %52, 0xK00000000000000000000
  br i1 %53, label %54, label %55

54:                                               ; preds = %51
  store x86_fp80 0xK3FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

55:                                               ; preds = %51
  %56 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %57 = fcmp oeq x86_fp80 %56, 0xK3FFF8000000000000000
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = load x86_fp80, ptr %4, align 16, !tbaa !5
  store x86_fp80 %59, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

60:                                               ; preds = %55
  %61 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %62 = fcmp oge x86_fp80 %61, 0xK7FFEFFFFFFFFFFFFFFFF
  br i1 %62, label %63, label %75

63:                                               ; preds = %60
  %64 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %65 = fcmp ogt x86_fp80 %64, 0xK3FFF8000000000000000
  br i1 %65, label %69, label %66

66:                                               ; preds = %63
  %67 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %68 = fcmp olt x86_fp80 %67, 0xKBFFF8000000000000000
  br i1 %68, label %69, label %70

69:                                               ; preds = %66, %63
  store x86_fp80 0xK7FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

70:                                               ; preds = %66
  %71 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %72 = fcmp une x86_fp80 %71, 0xK00000000000000000000
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

74:                                               ; preds = %70
  br label %75

75:                                               ; preds = %74, %60
  %76 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %77 = fcmp ole x86_fp80 %76, 0xKFFFEFFFFFFFFFFFFFFFF
  br i1 %77, label %78, label %93

78:                                               ; preds = %75
  %79 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %80 = fcmp ogt x86_fp80 %79, 0xK3FFF8000000000000000
  br i1 %80, label %84, label %81

81:                                               ; preds = %78
  %82 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %83 = fcmp olt x86_fp80 %82, 0xKBFFF8000000000000000
  br i1 %83, label %84, label %85

84:                                               ; preds = %81, %78
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

85:                                               ; preds = %81
  %86 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %87 = fcmp une x86_fp80 %86, 0xK00000000000000000000
  br i1 %87, label %91, label %88

88:                                               ; preds = %85
  %89 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %90 = fcmp oeq x86_fp80 %89, 0xKFFFF8000000000000000
  br i1 %90, label %91, label %92

91:                                               ; preds = %88, %85
  store x86_fp80 0xK7FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

92:                                               ; preds = %88
  br label %93

93:                                               ; preds = %92, %75
  %94 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %95 = fcmp oge x86_fp80 %94, 0xK7FFEFFFFFFFFFFFFFFFF
  br i1 %95, label %96, label %101

96:                                               ; preds = %93
  %97 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %98 = fcmp ogt x86_fp80 %97, 0xK00000000000000000000
  br i1 %98, label %99, label %100

99:                                               ; preds = %96
  store x86_fp80 0xK7FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

100:                                              ; preds = %96
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

101:                                              ; preds = %93
  %102 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %103 = call x86_fp80 @llvm.floor.f80(x86_fp80 %102)
  store x86_fp80 %103, ptr %12, align 16, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !9
  %104 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %105 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %106 = fcmp oeq x86_fp80 %104, %105
  br i1 %106, label %107, label %108

107:                                              ; preds = %101
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %107, %101
  store i32 0, ptr %9, align 4, !tbaa !9
  %109 = load i32, ptr %8, align 4, !tbaa !9
  %110 = icmp ne i32 %109, 0
  br i1 %110, label %111, label %125

111:                                              ; preds = %108
  %112 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %113 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %112)
  store x86_fp80 %113, ptr %16, align 16, !tbaa !5
  %114 = load x86_fp80, ptr %16, align 16, !tbaa !5
  %115 = fmul x86_fp80 0xK3FFE8000000000000000, %114
  %116 = call x86_fp80 @llvm.floor.f80(x86_fp80 %115)
  store x86_fp80 %116, ptr %16, align 16, !tbaa !5
  %117 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %118 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %117)
  %119 = fmul x86_fp80 0xK3FFE8000000000000000, %118
  store x86_fp80 %119, ptr %17, align 16, !tbaa !5
  %120 = load x86_fp80, ptr %16, align 16, !tbaa !5
  %121 = load x86_fp80, ptr %17, align 16, !tbaa !5
  %122 = fcmp une x86_fp80 %120, %121
  br i1 %122, label %123, label %124

123:                                              ; preds = %111
  store i32 1, ptr %9, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %123, %111
  br label %125

125:                                              ; preds = %124, %108
  %126 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %127 = fcmp ole x86_fp80 %126, 0xKFFFEFFFFFFFFFFFFFFFF
  br i1 %127, label %128, label %145

128:                                              ; preds = %125
  %129 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %130 = fcmp ogt x86_fp80 %129, 0xK00000000000000000000
  br i1 %130, label %131, label %136

131:                                              ; preds = %128
  %132 = load i32, ptr %9, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %135

134:                                              ; preds = %131
  store x86_fp80 0xKFFFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

135:                                              ; preds = %131
  store x86_fp80 0xK7FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

136:                                              ; preds = %128
  %137 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %138 = fcmp olt x86_fp80 %137, 0xK00000000000000000000
  br i1 %138, label %139, label %144

139:                                              ; preds = %136
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %139
  store x86_fp80 0xK80000000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

143:                                              ; preds = %139
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

144:                                              ; preds = %136
  br label %145

145:                                              ; preds = %144, %125
  store i32 0, ptr %7, align 4, !tbaa !9
  %146 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %147 = fcmp ole x86_fp80 %146, 0xK00000000000000000000
  br i1 %147, label %148, label %190

148:                                              ; preds = %145
  %149 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %150 = fcmp oeq x86_fp80 %149, 0xK00000000000000000000
  br i1 %150, label %151, label %172

151:                                              ; preds = %148
  %152 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %153 = fcmp olt x86_fp80 %152, 0xK00000000000000000000
  br i1 %153, label %154, label %163

154:                                              ; preds = %151
  %155 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %156 = bitcast x86_fp80 %155 to i80
  %157 = icmp slt i80 %156, 0
  br i1 %157, label %158, label %162

158:                                              ; preds = %154
  %159 = load i32, ptr %9, align 4, !tbaa !9
  %160 = icmp ne i32 %159, 0
  br i1 %160, label %161, label %162

161:                                              ; preds = %158
  store x86_fp80 0xKFFFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

162:                                              ; preds = %158, %154
  store x86_fp80 0xK7FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

163:                                              ; preds = %151
  %164 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %165 = bitcast x86_fp80 %164 to i80
  %166 = icmp slt i80 %165, 0
  br i1 %166, label %167, label %171

167:                                              ; preds = %163
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %171

170:                                              ; preds = %167
  store x86_fp80 0xK80000000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

171:                                              ; preds = %167, %163
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

172:                                              ; preds = %148
  %173 = load i32, ptr %8, align 4, !tbaa !9
  %174 = icmp eq i32 %173, 0
  br i1 %174, label %175, label %183

175:                                              ; preds = %172
  %176 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %177 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %178 = fsub x86_fp80 %176, %177
  %179 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %180 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %181 = fsub x86_fp80 %179, %180
  %182 = fdiv x86_fp80 %178, %181
  store x86_fp80 %182, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

183:                                              ; preds = %172
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %187

186:                                              ; preds = %183
  store i32 1, ptr %7, align 4, !tbaa !9
  br label %187

187:                                              ; preds = %186, %183
  %188 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %189 = fneg x86_fp80 %188
  store x86_fp80 %189, ptr %4, align 16, !tbaa !5
  br label %190

190:                                              ; preds = %187, %145
  %191 = load i32, ptr %8, align 4, !tbaa !9
  %192 = icmp ne i32 %191, 0
  br i1 %192, label %193, label %216

193:                                              ; preds = %190
  %194 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %195 = call x86_fp80 @llvm.floor.f80(x86_fp80 %194)
  %196 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %197 = fcmp oeq x86_fp80 %195, %196
  br i1 %197, label %198, label %216

198:                                              ; preds = %193
  %199 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %200 = call x86_fp80 @llvm.fabs.f80(x86_fp80 %199)
  %201 = fcmp olt x86_fp80 %200, 0xK400E8000000000000000
  br i1 %201, label %202, label %216

202:                                              ; preds = %198
  %203 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %204 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %205 = fptosi x86_fp80 %204 to i32
  %206 = call x86_fp80 @powil(x86_fp80 noundef %203, i32 noundef %205)
  store x86_fp80 %206, ptr %12, align 16, !tbaa !5
  %207 = load i32, ptr %7, align 4, !tbaa !9
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %209, label %212

209:                                              ; preds = %202
  %210 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %211 = fneg x86_fp80 %210
  br label %214

212:                                              ; preds = %202
  %213 = load x86_fp80, ptr %12, align 16, !tbaa !5
  br label %214

214:                                              ; preds = %212, %209
  %215 = phi x86_fp80 [ %211, %209 ], [ %213, %212 ]
  store x86_fp80 %215, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

216:                                              ; preds = %198, %193, %190
  %217 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %218 = call x86_fp80 @frexpl(x86_fp80 noundef %217, ptr noundef %6) #5
  store x86_fp80 %218, ptr %4, align 16, !tbaa !5
  %219 = load i32, ptr %6, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  store i64 %220, ptr %10, align 8, !tbaa !11
  store i32 1, ptr %6, align 4, !tbaa !9
  %221 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %222 = load x86_fp80, ptr getelementptr inbounds ([33 x x86_fp80], ptr @A, i64 0, i64 17), align 16, !tbaa !5
  %223 = fcmp ole x86_fp80 %221, %222
  br i1 %223, label %224, label %225

224:                                              ; preds = %216
  store i32 17, ptr %6, align 4, !tbaa !9
  br label %225

225:                                              ; preds = %224, %216
  %226 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %227 = load i32, ptr %6, align 4, !tbaa !9
  %228 = add nsw i32 %227, 8
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %229
  %231 = load x86_fp80, ptr %230, align 16, !tbaa !5
  %232 = fcmp ole x86_fp80 %226, %231
  br i1 %232, label %233, label %236

233:                                              ; preds = %225
  %234 = load i32, ptr %6, align 4, !tbaa !9
  %235 = add nsw i32 %234, 8
  store i32 %235, ptr %6, align 4, !tbaa !9
  br label %236

236:                                              ; preds = %233, %225
  %237 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %238 = load i32, ptr %6, align 4, !tbaa !9
  %239 = add nsw i32 %238, 4
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %240
  %242 = load x86_fp80, ptr %241, align 16, !tbaa !5
  %243 = fcmp ole x86_fp80 %237, %242
  br i1 %243, label %244, label %247

244:                                              ; preds = %236
  %245 = load i32, ptr %6, align 4, !tbaa !9
  %246 = add nsw i32 %245, 4
  store i32 %246, ptr %6, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %244, %236
  %248 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %249 = load i32, ptr %6, align 4, !tbaa !9
  %250 = add nsw i32 %249, 2
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %251
  %253 = load x86_fp80, ptr %252, align 16, !tbaa !5
  %254 = fcmp ole x86_fp80 %248, %253
  br i1 %254, label %255, label %258

255:                                              ; preds = %247
  %256 = load i32, ptr %6, align 4, !tbaa !9
  %257 = add nsw i32 %256, 2
  store i32 %257, ptr %6, align 4, !tbaa !9
  br label %258

258:                                              ; preds = %255, %247
  %259 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %260 = load x86_fp80, ptr getelementptr inbounds ([33 x x86_fp80], ptr @A, i64 0, i64 1), align 16, !tbaa !5
  %261 = fcmp oge x86_fp80 %259, %260
  br i1 %261, label %262, label %263

262:                                              ; preds = %258
  store i32 -1, ptr %6, align 4, !tbaa !9
  br label %263

263:                                              ; preds = %262, %258
  %264 = load i32, ptr %6, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %6, align 4, !tbaa !9
  %266 = load i32, ptr %6, align 4, !tbaa !9
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %267
  %269 = load x86_fp80, ptr %268, align 16, !tbaa !5
  %270 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %271 = fsub x86_fp80 %270, %269
  store x86_fp80 %271, ptr %4, align 16, !tbaa !5
  %272 = load i32, ptr %6, align 4, !tbaa !9
  %273 = sdiv i32 %272, 2
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds [17 x x86_fp80], ptr @B, i64 0, i64 %274
  %276 = load x86_fp80, ptr %275, align 16, !tbaa !5
  %277 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %278 = fsub x86_fp80 %277, %276
  store x86_fp80 %278, ptr %4, align 16, !tbaa !5
  %279 = load i32, ptr %6, align 4, !tbaa !9
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %280
  %282 = load x86_fp80, ptr %281, align 16, !tbaa !5
  %283 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %284 = fdiv x86_fp80 %283, %282
  store x86_fp80 %284, ptr %4, align 16, !tbaa !5
  %285 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %286 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %287 = fmul x86_fp80 %285, %286
  store volatile x86_fp80 %287, ptr %11, align 16, !tbaa !5
  %288 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %289 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %290 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %291 = call x86_fp80 @__polevll(x86_fp80 noundef %290, ptr noundef @P, i32 noundef 3)
  %292 = fmul x86_fp80 %289, %291
  %293 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %294 = call x86_fp80 @__p1evll(x86_fp80 noundef %293, ptr noundef @Q, i32 noundef 3)
  %295 = fdiv x86_fp80 %292, %294
  %296 = fmul x86_fp80 %288, %295
  store x86_fp80 %296, ptr %12, align 16, !tbaa !5
  %297 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %298 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %299 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 0xKBFFE8000000000000000, x86_fp80 %298, x86_fp80 %297)
  store x86_fp80 %299, ptr %12, align 16, !tbaa !5
  %300 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %301 = fmul x86_fp80 0xK3FFDE2A8ECA5705FC2EF, %300
  store volatile x86_fp80 %301, ptr %11, align 16, !tbaa !5
  %302 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %303 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %304 = fadd x86_fp80 %303, %302
  store volatile x86_fp80 %304, ptr %11, align 16, !tbaa !5
  %305 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %306 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %307 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 0xK3FFDE2A8ECA5705FC2EF, x86_fp80 %305, x86_fp80 %306)
  store volatile x86_fp80 %307, ptr %11, align 16, !tbaa !5
  %308 = load x86_fp80, ptr %4, align 16, !tbaa !5
  %309 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %310 = fadd x86_fp80 %309, %308
  store volatile x86_fp80 %310, ptr %11, align 16, !tbaa !5
  %311 = load i32, ptr %6, align 4, !tbaa !9
  %312 = sub nsw i32 0, %311
  %313 = sitofp i32 %312 to x86_fp80
  store x86_fp80 %313, ptr %12, align 16, !tbaa !5
  %314 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %315 = fdiv x86_fp80 %314, 0xK40048000000000000000
  store x86_fp80 %315, ptr %12, align 16, !tbaa !5
  %316 = load i64, ptr %10, align 8, !tbaa !11
  %317 = sitofp i64 %316 to x86_fp80
  %318 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %319 = fadd x86_fp80 %318, %317
  store x86_fp80 %319, ptr %12, align 16, !tbaa !5
  %320 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %321 = call x86_fp80 @reducl(x86_fp80 noundef %320)
  store x86_fp80 %321, ptr %16, align 16, !tbaa !5
  %322 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %323 = load x86_fp80, ptr %16, align 16, !tbaa !5
  %324 = fsub x86_fp80 %322, %323
  store x86_fp80 %324, ptr %17, align 16, !tbaa !5
  %325 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %326 = load x86_fp80, ptr %5, align 16, !tbaa !5
  %327 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %328 = load x86_fp80, ptr %17, align 16, !tbaa !5
  %329 = fmul x86_fp80 %327, %328
  %330 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %325, x86_fp80 %326, x86_fp80 %329)
  store x86_fp80 %330, ptr %13, align 16, !tbaa !5
  %331 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %332 = call x86_fp80 @reducl(x86_fp80 noundef %331)
  store x86_fp80 %332, ptr %14, align 16, !tbaa !5
  %333 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %334 = load x86_fp80, ptr %14, align 16, !tbaa !5
  %335 = fsub x86_fp80 %333, %334
  store x86_fp80 %335, ptr %15, align 16, !tbaa !5
  %336 = load x86_fp80, ptr %14, align 16, !tbaa !5
  %337 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %338 = load x86_fp80, ptr %16, align 16, !tbaa !5
  %339 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %337, x86_fp80 %338, x86_fp80 %336)
  store x86_fp80 %339, ptr %13, align 16, !tbaa !5
  %340 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %341 = call x86_fp80 @reducl(x86_fp80 noundef %340)
  store x86_fp80 %341, ptr %14, align 16, !tbaa !5
  %342 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %343 = load x86_fp80, ptr %14, align 16, !tbaa !5
  %344 = fsub x86_fp80 %342, %343
  store x86_fp80 %344, ptr %18, align 16, !tbaa !5
  %345 = load x86_fp80, ptr %15, align 16, !tbaa !5
  %346 = load x86_fp80, ptr %18, align 16, !tbaa !5
  %347 = fadd x86_fp80 %345, %346
  store x86_fp80 %347, ptr %13, align 16, !tbaa !5
  %348 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %349 = call x86_fp80 @reducl(x86_fp80 noundef %348)
  store x86_fp80 %349, ptr %15, align 16, !tbaa !5
  %350 = load x86_fp80, ptr %14, align 16, !tbaa !5
  %351 = load x86_fp80, ptr %15, align 16, !tbaa !5
  %352 = fadd x86_fp80 %350, %351
  %353 = fmul x86_fp80 %352, 0xK40048000000000000000
  store x86_fp80 %353, ptr %12, align 16, !tbaa !5
  %354 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %355 = fcmp ogt x86_fp80 %354, 0xK40128000000000000000
  br i1 %355, label %356, label %357

356:                                              ; preds = %263
  store x86_fp80 0xK7FFF8000000000000000, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

357:                                              ; preds = %263
  %358 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %359 = fcmp olt x86_fp80 %358, 0xKC0128080000000000000
  br i1 %359, label %360, label %364

360:                                              ; preds = %357
  %361 = load volatile x86_fp80, ptr @twom10000, align 16, !tbaa !5
  %362 = load volatile x86_fp80, ptr @twom10000, align 16, !tbaa !5
  %363 = fmul x86_fp80 %361, %362
  store x86_fp80 %363, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

364:                                              ; preds = %357
  %365 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %366 = fptosi x86_fp80 %365 to i64
  store i64 %366, ptr %10, align 8, !tbaa !11
  %367 = load x86_fp80, ptr %13, align 16, !tbaa !5
  %368 = load x86_fp80, ptr %15, align 16, !tbaa !5
  %369 = fsub x86_fp80 %367, %368
  store x86_fp80 %369, ptr %15, align 16, !tbaa !5
  %370 = load x86_fp80, ptr %15, align 16, !tbaa !5
  %371 = fcmp ogt x86_fp80 %370, 0xK00000000000000000000
  br i1 %371, label %372, label %377

372:                                              ; preds = %364
  %373 = load i64, ptr %10, align 8, !tbaa !11
  %374 = add nsw i64 %373, 1
  store i64 %374, ptr %10, align 8, !tbaa !11
  %375 = load x86_fp80, ptr %15, align 16, !tbaa !5
  %376 = fsub x86_fp80 %375, 0xK3FFA8000000000000000
  store x86_fp80 %376, ptr %15, align 16, !tbaa !5
  br label %377

377:                                              ; preds = %372, %364
  %378 = load x86_fp80, ptr %15, align 16, !tbaa !5
  %379 = load x86_fp80, ptr %15, align 16, !tbaa !5
  %380 = call x86_fp80 @__polevll(x86_fp80 noundef %379, ptr noundef @R, i32 noundef 6)
  %381 = fmul x86_fp80 %378, %380
  store volatile x86_fp80 %381, ptr %11, align 16, !tbaa !5
  %382 = load i64, ptr %10, align 8, !tbaa !11
  %383 = icmp slt i64 %382, 0
  br i1 %383, label %384, label %385

384:                                              ; preds = %377
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %386

385:                                              ; preds = %377
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %386

386:                                              ; preds = %385, %384
  %387 = load i64, ptr %10, align 8, !tbaa !11
  %388 = sdiv i64 %387, 32
  %389 = load i32, ptr %6, align 4, !tbaa !9
  %390 = sext i32 %389 to i64
  %391 = add nsw i64 %388, %390
  %392 = trunc i64 %391 to i32
  store i32 %392, ptr %6, align 4, !tbaa !9
  %393 = load i32, ptr %6, align 4, !tbaa !9
  %394 = mul nsw i32 32, %393
  %395 = sext i32 %394 to i64
  %396 = load i64, ptr %10, align 8, !tbaa !11
  %397 = sub nsw i64 %395, %396
  store i64 %397, ptr %10, align 8, !tbaa !11
  %398 = load i64, ptr %10, align 8, !tbaa !11
  %399 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %398
  %400 = load x86_fp80, ptr %399, align 16, !tbaa !5
  store x86_fp80 %400, ptr %12, align 16, !tbaa !5
  %401 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %402 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %403 = fmul x86_fp80 %401, %402
  store volatile x86_fp80 %403, ptr %11, align 16, !tbaa !5
  %404 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %405 = load x86_fp80, ptr %12, align 16, !tbaa !5
  %406 = fadd x86_fp80 %404, %405
  store volatile x86_fp80 %406, ptr %11, align 16, !tbaa !5
  %407 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %408 = load i32, ptr %6, align 4, !tbaa !9
  %409 = call x86_fp80 @scalbnl(x86_fp80 noundef %407, i32 noundef %408) #5
  store volatile x86_fp80 %409, ptr %11, align 16, !tbaa !5
  %410 = load i32, ptr %7, align 4, !tbaa !9
  %411 = icmp ne i32 %410, 0
  br i1 %411, label %412, label %415

412:                                              ; preds = %386
  %413 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  %414 = fneg x86_fp80 %413
  store volatile x86_fp80 %414, ptr %11, align 16, !tbaa !5
  br label %415

415:                                              ; preds = %412, %386
  %416 = load volatile x86_fp80, ptr %11, align 16, !tbaa !5
  store x86_fp80 %416, ptr %3, align 16
  store i32 1, ptr %19, align 4
  br label %417

417:                                              ; preds = %415, %360, %356, %214, %175, %171, %170, %162, %161, %143, %142, %135, %134, %100, %99, %91, %84, %73, %69, %58, %54, %50, %43, %38, %37, %29, %28
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %418 = load x86_fp80, ptr %3, align 16
  ret x86_fp80 %418
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i1 @llvm.is.fpclass.f80(x86_fp80, i32 immarg) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.floor.f80(x86_fp80) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fabs.f80(x86_fp80) #2

; Function Attrs: nounwind uwtable
declare hidden x86_fp80 @powil(x86_fp80 noundef, i32 noundef) #0

; Function Attrs: nounwind
declare x86_fp80 @frexpl(x86_fp80 noundef, ptr noundef) #3

declare x86_fp80 @__polevll(x86_fp80 noundef, ptr noundef, i32 noundef) #4

declare x86_fp80 @__p1evll(x86_fp80 noundef, ptr noundef, i32 noundef) #4

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

; Function Attrs: nounwind uwtable
declare hidden x86_fp80 @reducl(x86_fp80 noundef) #0

; Function Attrs: nounwind
declare x86_fp80 @scalbnl(x86_fp80 noundef, i32 noundef) #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #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 = { 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 = !{!"long double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !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"

@A = external hidden local_unnamed_addr constant [33 x x86_fp80], align 16
@B = external hidden local_unnamed_addr constant [17 x x86_fp80], align 16
@P = external hidden constant [4 x x86_fp80], align 16
@Q = external hidden constant [3 x x86_fp80], align 16
@twom10000 = external hidden constant x86_fp80, align 16
@R = external hidden constant [7 x x86_fp80], align 16

; Function Attrs: nounwind uwtable
define dso_local x86_fp80 @powl(x86_fp80 noundef %0, x86_fp80 noundef %1) local_unnamed_addr #0 {
  %3 = alloca i32, align 4
  %4 = alloca x86_fp80, align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 10, ptr nonnull %4)
  store volatile x86_fp80 0xK00000000000000000000, ptr %4, align 16, !tbaa !5
  %5 = fcmp uno x86_fp80 %0, 0xK00000000000000000000
  br i1 %5, label %6, label %8

6:                                                ; preds = %2
  %7 = fcmp oeq x86_fp80 %1, 0xK00000000000000000000
  %. = select i1 %7, x86_fp80 0xK3FFF8000000000000000, x86_fp80 %0
  br label %177

8:                                                ; preds = %2
  %9 = fcmp uno x86_fp80 %1, 0xK00000000000000000000
  %10 = fcmp oeq x86_fp80 %0, 0xK3FFF8000000000000000
  br i1 %9, label %11, label %12

11:                                               ; preds = %8
  %.159 = select i1 %10, x86_fp80 0xK3FFF8000000000000000, x86_fp80 %1
  br label %177

12:                                               ; preds = %8
  br i1 %10, label %177, label %13

13:                                               ; preds = %12
  %14 = fcmp oeq x86_fp80 %0, 0xKBFFF8000000000000000
  %15 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %1)
  %16 = fcmp ueq x86_fp80 %15, 0xK7FFF8000000000000000
  %or.cond = and i1 %14, %16
  %17 = fcmp oeq x86_fp80 %1, 0xK00000000000000000000
  %or.cond170 = or i1 %17, %or.cond
  br i1 %or.cond170, label %177, label %18

18:                                               ; preds = %13
  %19 = fcmp oeq x86_fp80 %1, 0xK3FFF8000000000000000
  br i1 %19, label %177, label %20

20:                                               ; preds = %18
  %21 = fcmp ult x86_fp80 %1, 0xK7FFEFFFFFFFFFFFFFFFF
  br i1 %21, label %26, label %22

22:                                               ; preds = %20
  %23 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %0)
  %or.cond3 = fcmp ogt x86_fp80 %23, 0xK3FFF8000000000000000
  br i1 %or.cond3, label %177, label %24

24:                                               ; preds = %22
  %25 = fcmp une x86_fp80 %0, 0xK00000000000000000000
  br i1 %25, label %177, label %26

26:                                               ; preds = %24, %20
  %27 = fcmp ugt x86_fp80 %1, 0xKFFFEFFFFFFFFFFFFFFFF
  br i1 %27, label %33, label %28

28:                                               ; preds = %26
  %29 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %0)
  %or.cond5 = fcmp ogt x86_fp80 %29, 0xK3FFF8000000000000000
  br i1 %or.cond5, label %177, label %30

30:                                               ; preds = %28
  %31 = fcmp une x86_fp80 %0, 0xK00000000000000000000
  %32 = fcmp oeq x86_fp80 %1, 0xKFFFF8000000000000000
  %or.cond7 = or i1 %31, %32
  br i1 %or.cond7, label %177, label %33

33:                                               ; preds = %30, %26
  %34 = fcmp ult x86_fp80 %0, 0xK7FFEFFFFFFFFFFFFFFFF
  br i1 %34, label %37, label %35

35:                                               ; preds = %33
  %36 = fcmp ogt x86_fp80 %1, 0xK00000000000000000000
  %.161 = select i1 %36, x86_fp80 0xK7FFF8000000000000000, x86_fp80 0xK00000000000000000000
  br label %177

37:                                               ; preds = %33
  %38 = tail call x86_fp80 @llvm.floor.f80(x86_fp80 %1)
  %39 = fcmp oeq x86_fp80 %38, %1
  br i1 %39, label %40, label %47

40:                                               ; preds = %37
  %41 = fmul x86_fp80 %15, 0xK3FFE8000000000000000
  %42 = tail call x86_fp80 @llvm.floor.f80(x86_fp80 %41)
  %43 = tail call x86_fp80 @llvm.fabs.f80(x86_fp80 %38)
  %44 = fmul x86_fp80 %43, 0xK3FFE8000000000000000
  %45 = fcmp une x86_fp80 %42, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %40
  br label %47

47:                                               ; preds = %40, %46, %37
  %.not154 = phi i1 [ false, %46 ], [ true, %40 ], [ true, %37 ]
  %48 = phi i1 [ true, %46 ], [ false, %40 ], [ false, %37 ]
  %49 = fcmp ugt x86_fp80 %0, 0xKFFFEFFFFFFFFFFFFFFFF
  br i1 %49, label %54, label %50

50:                                               ; preds = %47
  %51 = fcmp ogt x86_fp80 %1, 0xK00000000000000000000
  br i1 %51, label %52, label %53

52:                                               ; preds = %50
  %.162 = select i1 %.not154, x86_fp80 0xK7FFF8000000000000000, x86_fp80 0xKFFFF8000000000000000
  br label %177

53:                                               ; preds = %50
  %.163 = select i1 %.not154, x86_fp80 0xK00000000000000000000, x86_fp80 0xK80000000000000000000
  br label %177

54:                                               ; preds = %47
  %55 = fcmp ugt x86_fp80 %0, 0xK00000000000000000000
  br i1 %55, label %70, label %56

56:                                               ; preds = %54
  %57 = fcmp oeq x86_fp80 %0, 0xK00000000000000000000
  br i1 %57, label %58, label %64

58:                                               ; preds = %56
  %59 = fcmp olt x86_fp80 %1, 0xK00000000000000000000
  %60 = bitcast x86_fp80 %0 to i80
  %61 = icmp slt i80 %60, 0
  %or.cond9 = and i1 %61, %48
  br i1 %59, label %62, label %63

62:                                               ; preds = %58
  %.164 = select i1 %or.cond9, x86_fp80 0xKFFFF8000000000000000, x86_fp80 0xK7FFF8000000000000000
  br label %177

63:                                               ; preds = %58
  %.165 = select i1 %or.cond9, x86_fp80 0xK80000000000000000000, x86_fp80 0xK00000000000000000000
  br label %177

64:                                               ; preds = %56
  br i1 %39, label %68, label %65

65:                                               ; preds = %64
  %66 = fsub x86_fp80 %0, %0
  %67 = fdiv x86_fp80 %66, %66
  br label %177

68:                                               ; preds = %64
  %69 = fneg x86_fp80 %0
  br label %70

70:                                               ; preds = %68, %54
  %.1 = phi i1 [ %.not154, %68 ], [ true, %54 ]
  %.0142 = phi x86_fp80 [ %69, %68 ], [ %0, %54 ]
  %71 = tail call x86_fp80 @llvm.floor.f80(x86_fp80 %.0142)
  %72 = fcmp oeq x86_fp80 %71, %.0142
  %73 = fcmp olt x86_fp80 %15, 0xK400E8000000000000000
  %74 = and i1 %73, %72
  %or.cond169 = and i1 %39, %74
  br i1 %or.cond169, label %75, label %80

75:                                               ; preds = %70
  %76 = fptosi x86_fp80 %1 to i32
  %77 = tail call x86_fp80 @powil(x86_fp80 noundef %.0142, i32 noundef %76)
  %78 = fneg x86_fp80 %77
  %79 = select i1 %.1, x86_fp80 %77, x86_fp80 %78
  br label %177

80:                                               ; preds = %70
  %81 = call x86_fp80 @frexpl(x86_fp80 noundef %.0142, ptr noundef nonnull %3) #6
  %82 = load i32, ptr %3, align 4, !tbaa !9
  %83 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @A, i64 272), align 16, !tbaa !5
  %84 = fcmp ugt x86_fp80 %81, %83
  %85 = select i1 %84, i32 1, i32 17
  %86 = or disjoint i32 %85, 8
  %87 = zext nneg i32 %86 to i64
  %88 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %87
  %89 = load x86_fp80, ptr %88, align 16, !tbaa !5
  %90 = fcmp ugt x86_fp80 %81, %89
  %91 = select i1 %90, i32 %85, i32 %86
  %92 = or disjoint i32 %91, 4
  %93 = zext nneg i32 %92 to i64
  %94 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %93
  %95 = load x86_fp80, ptr %94, align 16, !tbaa !5
  %96 = fcmp ugt x86_fp80 %81, %95
  %97 = select i1 %96, i32 %91, i32 %92
  %98 = or disjoint i32 %97, 2
  %99 = zext nneg i32 %98 to i64
  %100 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %99
  %101 = load x86_fp80, ptr %100, align 16, !tbaa !5
  %102 = fcmp ugt x86_fp80 %81, %101
  %103 = select i1 %102, i32 %97, i32 %98
  %104 = load x86_fp80, ptr getelementptr inbounds (i8, ptr @A, i64 16), align 16, !tbaa !5
  %105 = fcmp ult x86_fp80 %81, %104
  %106 = select i1 %105, i32 %103, i32 -1
  %107 = add nsw i32 %106, 1
  %108 = zext nneg i32 %107 to i64
  %109 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %108
  %110 = load x86_fp80, ptr %109, align 16, !tbaa !5
  %111 = fsub x86_fp80 %81, %110
  %112 = lshr i32 %107, 1
  %113 = zext nneg i32 %112 to i64
  %114 = getelementptr inbounds [17 x x86_fp80], ptr @B, i64 0, i64 %113
  %115 = load x86_fp80, ptr %114, align 16, !tbaa !5
  %116 = fsub x86_fp80 %111, %115
  %117 = fdiv x86_fp80 %116, %110
  %118 = fmul x86_fp80 %117, %117
  store volatile x86_fp80 %118, ptr %4, align 16, !tbaa !5
  %.0..0..0..0.51 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %119 = tail call x86_fp80 @__polevll(x86_fp80 noundef %117, ptr noundef nonnull @P, i32 noundef 3) #6
  %120 = fmul x86_fp80 %.0..0..0..0.51, %119
  %121 = tail call x86_fp80 @__p1evll(x86_fp80 noundef %117, ptr noundef nonnull @Q, i32 noundef 3) #6
  %122 = fdiv x86_fp80 %120, %121
  %123 = fmul x86_fp80 %117, %122
  %.0..0..0..0.52 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %124 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %.0..0..0..0.52, x86_fp80 0xKBFFE8000000000000000, x86_fp80 %123)
  %125 = fmul x86_fp80 %124, 0xK3FFDE2A8ECA5705FC2EF
  store volatile x86_fp80 %125, ptr %4, align 16, !tbaa !5
  %.0..0..0..0.53 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %126 = fadd x86_fp80 %.0..0..0..0.53, %124
  store volatile x86_fp80 %126, ptr %4, align 16, !tbaa !5
  %.0..0..0..0.54 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %127 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %117, x86_fp80 0xK3FFDE2A8ECA5705FC2EF, x86_fp80 %.0..0..0..0.54)
  store volatile x86_fp80 %127, ptr %4, align 16, !tbaa !5
  %.0..0..0..0.55 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %128 = fadd x86_fp80 %117, %.0..0..0..0.55
  store volatile x86_fp80 %128, ptr %4, align 16, !tbaa !5
  %129 = xor i32 %106, -1
  %130 = sitofp i32 %129 to x86_fp80
  %131 = fmul x86_fp80 %130, 0xK3FFA8000000000000000
  %132 = sitofp i32 %82 to x86_fp80
  %133 = fadd x86_fp80 %131, %132
  %134 = tail call x86_fp80 @reducl(x86_fp80 noundef %1)
  %135 = fsub x86_fp80 %1, %134
  %.0..0..0..0.56 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %136 = fmul x86_fp80 %133, %135
  %137 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %.0..0..0..0.56, x86_fp80 %1, x86_fp80 %136)
  %138 = tail call x86_fp80 @reducl(x86_fp80 noundef %137)
  %139 = fsub x86_fp80 %137, %138
  %140 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %133, x86_fp80 %134, x86_fp80 %138)
  %141 = tail call x86_fp80 @reducl(x86_fp80 noundef %140)
  %142 = fsub x86_fp80 %140, %141
  %143 = fadd x86_fp80 %139, %142
  %144 = tail call x86_fp80 @reducl(x86_fp80 noundef %143)
  %145 = fadd x86_fp80 %141, %144
  %146 = fmul x86_fp80 %145, 0xK40048000000000000000
  %147 = fcmp ogt x86_fp80 %146, 0xK40128000000000000000
  br i1 %147, label %177, label %148

148:                                              ; preds = %80
  %149 = fcmp olt x86_fp80 %146, 0xKC0128080000000000000
  br i1 %149, label %150, label %154

150:                                              ; preds = %148
  %151 = load volatile x86_fp80, ptr @twom10000, align 16, !tbaa !5
  %152 = load volatile x86_fp80, ptr @twom10000, align 16, !tbaa !5
  %153 = fmul x86_fp80 %151, %152
  br label %177

154:                                              ; preds = %148
  %155 = fptosi x86_fp80 %146 to i64
  %156 = fsub x86_fp80 %143, %144
  %157 = fcmp ogt x86_fp80 %156, 0xK00000000000000000000
  %158 = fadd x86_fp80 %156, 0xKBFFA8000000000000000
  %159 = zext i1 %157 to i64
  %.0147 = add nsw i64 %159, %155
  %.0144 = select i1 %157, x86_fp80 %158, x86_fp80 %156
  %160 = tail call x86_fp80 @__polevll(x86_fp80 noundef %.0144, ptr noundef nonnull @R, i32 noundef 6) #6
  %161 = fmul x86_fp80 %.0144, %160
  store volatile x86_fp80 %161, ptr %4, align 16, !tbaa !5
  %162 = icmp sgt i64 %.0147, -1
  %storemerge = zext i1 %162 to i32
  %163 = sdiv i64 %.0147, 32
  %164 = trunc i64 %163 to i32
  %165 = add i32 %storemerge, %164
  %166 = shl nsw i32 %165, 5
  %167 = sext i32 %166 to i64
  %168 = sub nsw i64 %167, %.0147
  %169 = getelementptr inbounds [33 x x86_fp80], ptr @A, i64 0, i64 %168
  %170 = load x86_fp80, ptr %169, align 16, !tbaa !5
  %.0..0..0..0.57 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %171 = fmul x86_fp80 %170, %.0..0..0..0.57
  store volatile x86_fp80 %171, ptr %4, align 16, !tbaa !5
  %.0..0..0..0.58 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %172 = fadd x86_fp80 %170, %.0..0..0..0.58
  store volatile x86_fp80 %172, ptr %4, align 16, !tbaa !5
  %.0..0..0..0.59 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %173 = tail call x86_fp80 @scalbnl(x86_fp80 noundef %.0..0..0..0.59, i32 noundef %165) #6
  store volatile x86_fp80 %173, ptr %4, align 16, !tbaa !5
  br i1 %.1, label %176, label %174

174:                                              ; preds = %154
  %.0..0..0..0.60 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  %175 = fneg x86_fp80 %.0..0..0..0.60
  store volatile x86_fp80 %175, ptr %4, align 16, !tbaa !5
  br label %176

176:                                              ; preds = %174, %154
  %.0..0..0..0.61 = load volatile x86_fp80, ptr %4, align 16, !tbaa !5
  br label %177

177:                                              ; preds = %80, %63, %62, %53, %52, %35, %30, %28, %24, %22, %18, %13, %12, %11, %6, %176, %150, %75, %65
  %.0 = phi x86_fp80 [ %67, %65 ], [ %79, %75 ], [ %153, %150 ], [ %.0..0..0..0.61, %176 ], [ %., %6 ], [ %.159, %11 ], [ 0xK3FFF8000000000000000, %12 ], [ 0xK3FFF8000000000000000, %13 ], [ %0, %18 ], [ 0xK7FFF8000000000000000, %22 ], [ 0xK00000000000000000000, %24 ], [ 0xK00000000000000000000, %28 ], [ 0xK7FFF8000000000000000, %30 ], [ %.161, %35 ], [ %.162, %52 ], [ %.163, %53 ], [ %.164, %62 ], [ %.165, %63 ], [ 0xK7FFF8000000000000000, %80 ]
  call void @llvm.lifetime.end.p0(i64 10, ptr nonnull %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  ret x86_fp80 %.0
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.floor.f80(x86_fp80) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fabs.f80(x86_fp80) #2

; Function Attrs: nounwind uwtable
declare hidden x86_fp80 @powil(x86_fp80 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: write)
declare x86_fp80 @frexpl(x86_fp80 noundef, ptr nocapture noundef) local_unnamed_addr #3

declare x86_fp80 @__polevll(x86_fp80 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

declare x86_fp80 @__p1evll(x86_fp80 noundef, ptr noundef, i32 noundef) local_unnamed_addr #4

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

; Function Attrs: nounwind uwtable
declare hidden x86_fp80 @reducl(x86_fp80 noundef) local_unnamed_addr #0

; Function Attrs: nounwind
declare x86_fp80 @scalbnl(x86_fp80 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: 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 #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 = { 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 #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 = !{!"long double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass