; LLVM IR from tangjz/acm-icpc :: hdu/6159.ll (Z9poly_conviPiiS_iS_b)

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

%struct.complex = type { double, double }

@mod = external dso_local global i32, align 4
@sp = external dso_local global i32, align 4
@msk = external dso_local global i32, align 4
@_ZZ9poly_conviPiiS_iS_bE1A = external hidden global [65537 x %struct.complex], align 16
@_ZGVZ9poly_conviPiiS_iS_bE1A = external hidden global i64, align 8
@_ZZ9poly_conviPiiS_iS_bE1B = external hidden global [65537 x %struct.complex], align 16
@_ZGVZ9poly_conviPiiS_iS_bE1B = external hidden global i64, align 8
@_ZZ9poly_conviPiiS_iS_bE1C = external hidden global [65537 x %struct.complex], align 16
@_ZGVZ9poly_conviPiiS_iS_bE1C = external hidden global i64, align 8
@_ZZ9poly_conviPiiS_iS_bE1D = external hidden global [65537 x %struct.complex], align 16
@_ZGVZ9poly_conviPiiS_iS_bE1D = external hidden global i64, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3FFTiP7complexi(i32 noundef, ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9poly_conviPiiS_iS_b(i32 noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, i32 noundef %4, ptr noundef %5, i1 noundef zeroext %6) #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca %struct.complex, align 8
  %20 = alloca %struct.complex, align 8
  %21 = alloca %struct.complex, align 8
  %22 = alloca %struct.complex, align 8
  %23 = alloca %struct.complex, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %struct.complex, align 8
  %27 = alloca %struct.complex, align 8
  %28 = alloca %struct.complex, align 8
  %29 = alloca %struct.complex, align 8
  %30 = alloca %struct.complex, align 8
  %31 = alloca %struct.complex, align 8
  %32 = alloca %struct.complex, align 8
  %33 = alloca %struct.complex, align 8
  %34 = alloca %struct.complex, align 8
  %35 = alloca %struct.complex, align 8
  %36 = alloca %struct.complex, align 8
  %37 = alloca %struct.complex, align 8
  %38 = alloca %struct.complex, align 8
  %39 = alloca %struct.complex, align 8
  %40 = alloca %struct.complex, align 8
  %41 = alloca %struct.complex, align 8
  %42 = alloca %struct.complex, align 8
  %43 = alloca %struct.complex, align 8
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  store i32 %0, ptr %8, align 4, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !9
  %49 = zext i1 %6 to i8
  store i8 %49, ptr %14, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %50 = load atomic i8, ptr @_ZGVZ9poly_conviPiiS_iS_bE1A acquire, align 8
  %51 = icmp eq i8 %50, 0
  br i1 %51, label %52, label %62, !prof !13

52:                                               ; preds = %7
  %53 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ9poly_conviPiiS_iS_bE1A) #4
  %54 = icmp ne i32 %53, 0
  br i1 %54, label %55, label %62

55:                                               ; preds = %52
  br label %56

56:                                               ; preds = %58, %55
  %57 = phi ptr [ @_ZZ9poly_conviPiiS_iS_bE1A, %55 ], [ %59, %58 ]
  invoke void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %57)
          to label %58 unwind label %113

58:                                               ; preds = %56
  %59 = getelementptr inbounds %struct.complex, ptr %57, i64 1
  %60 = icmp eq ptr %59, getelementptr inbounds (%struct.complex, ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 65537)
  br i1 %60, label %61, label %56

61:                                               ; preds = %58
  call void @__cxa_guard_release(ptr @_ZGVZ9poly_conviPiiS_iS_bE1A) #4
  br label %62

62:                                               ; preds = %61, %52, %7
  %63 = load atomic i8, ptr @_ZGVZ9poly_conviPiiS_iS_bE1B acquire, align 8
  %64 = icmp eq i8 %63, 0
  br i1 %64, label %65, label %75, !prof !13

65:                                               ; preds = %62
  %66 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ9poly_conviPiiS_iS_bE1B) #4
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %75

68:                                               ; preds = %65
  br label %69

69:                                               ; preds = %71, %68
  %70 = phi ptr [ @_ZZ9poly_conviPiiS_iS_bE1B, %68 ], [ %72, %71 ]
  invoke void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %70)
          to label %71 unwind label %117

71:                                               ; preds = %69
  %72 = getelementptr inbounds %struct.complex, ptr %70, i64 1
  %73 = icmp eq ptr %72, getelementptr inbounds (%struct.complex, ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 65537)
  br i1 %73, label %74, label %69

74:                                               ; preds = %71
  call void @__cxa_guard_release(ptr @_ZGVZ9poly_conviPiiS_iS_bE1B) #4
  br label %75

75:                                               ; preds = %74, %65, %62
  %76 = load atomic i8, ptr @_ZGVZ9poly_conviPiiS_iS_bE1C acquire, align 8
  %77 = icmp eq i8 %76, 0
  br i1 %77, label %78, label %88, !prof !13

78:                                               ; preds = %75
  %79 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ9poly_conviPiiS_iS_bE1C) #4
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %88

81:                                               ; preds = %78
  br label %82

82:                                               ; preds = %84, %81
  %83 = phi ptr [ @_ZZ9poly_conviPiiS_iS_bE1C, %81 ], [ %85, %84 ]
  invoke void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %83)
          to label %84 unwind label %121

84:                                               ; preds = %82
  %85 = getelementptr inbounds %struct.complex, ptr %83, i64 1
  %86 = icmp eq ptr %85, getelementptr inbounds (%struct.complex, ptr @_ZZ9poly_conviPiiS_iS_bE1C, i64 65537)
  br i1 %86, label %87, label %82

87:                                               ; preds = %84
  call void @__cxa_guard_release(ptr @_ZGVZ9poly_conviPiiS_iS_bE1C) #4
  br label %88

88:                                               ; preds = %87, %78, %75
  %89 = load atomic i8, ptr @_ZGVZ9poly_conviPiiS_iS_bE1D acquire, align 8
  %90 = icmp eq i8 %89, 0
  br i1 %90, label %91, label %101, !prof !13

91:                                               ; preds = %88
  %92 = call i32 @__cxa_guard_acquire(ptr @_ZGVZ9poly_conviPiiS_iS_bE1D) #4
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %101

94:                                               ; preds = %91
  br label %95

95:                                               ; preds = %97, %94
  %96 = phi ptr [ @_ZZ9poly_conviPiiS_iS_bE1D, %94 ], [ %98, %97 ]
  invoke void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %96)
          to label %97 unwind label %125

97:                                               ; preds = %95
  %98 = getelementptr inbounds %struct.complex, ptr %96, i64 1
  %99 = icmp eq ptr %98, getelementptr inbounds (%struct.complex, ptr @_ZZ9poly_conviPiiS_iS_bE1D, i64 65537)
  br i1 %99, label %100, label %95

100:                                              ; preds = %97
  call void @__cxa_guard_release(ptr @_ZGVZ9poly_conviPiiS_iS_bE1D) #4
  br label %101

101:                                              ; preds = %100, %91, %88
  %102 = load i8, ptr %14, align 1, !tbaa !11, !range !14, !noundef !15
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %130

104:                                              ; preds = %101
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %110, %104
  %106 = load i32, ptr %15, align 4, !tbaa !5
  %107 = load i32, ptr %12, align 4, !tbaa !5
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %109, label %129

109:                                              ; preds = %105
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %15, align 4, !tbaa !5
  %112 = shl i32 %111, 1
  store i32 %112, ptr %15, align 4, !tbaa !5
  br label %105, !llvm.loop !16

113:                                              ; preds = %56
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %16, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %17, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ9poly_conviPiiS_iS_bE1A) #4
  br label %423

117:                                              ; preds = %69
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %16, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %17, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ9poly_conviPiiS_iS_bE1B) #4
  br label %423

121:                                              ; preds = %82
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %16, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %17, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ9poly_conviPiiS_iS_bE1C) #4
  br label %423

125:                                              ; preds = %95
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %16, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %17, align 4
  call void @__cxa_guard_abort(ptr @_ZGVZ9poly_conviPiiS_iS_bE1D) #4
  br label %423

129:                                              ; preds = %105
  br label %143

130:                                              ; preds = %101
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %139, %130
  %132 = load i32, ptr %15, align 4, !tbaa !5
  %133 = load i32, ptr %8, align 4, !tbaa !5
  %134 = load i32, ptr %10, align 4, !tbaa !5
  %135 = add nsw i32 %133, %134
  %136 = sub nsw i32 %135, 1
  %137 = icmp slt i32 %132, %136
  br i1 %137, label %138, label %142

138:                                              ; preds = %131
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %15, align 4, !tbaa !5
  %141 = shl i32 %140, 1
  store i32 %141, ptr %15, align 4, !tbaa !5
  br label %131, !llvm.loop !18

142:                                              ; preds = %131
  br label %143

143:                                              ; preds = %142, %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !5
  br label %144

144:                                              ; preds = %200, %143
  %145 = load i32, ptr %18, align 4, !tbaa !5
  %146 = load i32, ptr %15, align 4, !tbaa !5
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %203

149:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %150 = load i32, ptr %18, align 4, !tbaa !5
  %151 = load i32, ptr %8, align 4, !tbaa !5
  %152 = icmp slt i32 %150, %151
  br i1 %152, label %153, label %170

153:                                              ; preds = %149
  %154 = load ptr, ptr %9, align 8, !tbaa !9
  %155 = load i32, ptr %18, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds i32, ptr %154, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !5
  %159 = load i32, ptr @msk, align 4, !tbaa !5
  %160 = and i32 %158, %159
  %161 = sitofp i32 %160 to double
  %162 = load ptr, ptr %9, align 8, !tbaa !9
  %163 = load i32, ptr %18, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds i32, ptr %162, i64 %164
  %166 = load i32, ptr %165, align 4, !tbaa !5
  %167 = load i32, ptr @sp, align 4, !tbaa !5
  %168 = ashr i32 %166, %167
  %169 = sitofp i32 %168 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef %161, double noundef %169)
  br label %171

170:                                              ; preds = %149
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %19, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %171

171:                                              ; preds = %170, %153
  %172 = load i32, ptr %18, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 0, i64 %173
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %174, ptr align 8 %19, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #4
  %175 = load i32, ptr %18, align 4, !tbaa !5
  %176 = load i32, ptr %10, align 4, !tbaa !5
  %177 = icmp slt i32 %175, %176
  br i1 %177, label %178, label %195

178:                                              ; preds = %171
  %179 = load ptr, ptr %11, align 8, !tbaa !9
  %180 = load i32, ptr %18, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds i32, ptr %179, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = load i32, ptr @msk, align 4, !tbaa !5
  %185 = and i32 %183, %184
  %186 = sitofp i32 %185 to double
  %187 = load ptr, ptr %11, align 8, !tbaa !9
  %188 = load i32, ptr %18, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds i32, ptr %187, i64 %189
  %191 = load i32, ptr %190, align 4, !tbaa !5
  %192 = load i32, ptr @sp, align 4, !tbaa !5
  %193 = ashr i32 %191, %192
  %194 = sitofp i32 %193 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef %186, double noundef %194)
  br label %196

195:                                              ; preds = %171
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %20, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %196

196:                                              ; preds = %195, %178
  %197 = load i32, ptr %18, align 4, !tbaa !5
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 0, i64 %198
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %199, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  br label %200

200:                                              ; preds = %196
  %201 = load i32, ptr %18, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %18, align 4, !tbaa !5
  br label %144, !llvm.loop !22

203:                                              ; preds = %148
  %204 = load i32, ptr %15, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %204, ptr noundef @_ZZ9poly_conviPiiS_iS_bE1A, i32 noundef 1)
  %205 = load i32, ptr %15, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %205, ptr noundef @_ZZ9poly_conviPiiS_iS_bE1B, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #4
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %21, double noundef 5.000000e-01, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %22, double noundef 0.000000e+00, double noundef -5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #4
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %23, double noundef 0.000000e+00, double noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !5
  br label %206

206:                                              ; preds = %338, %203
  %207 = load i32, ptr %24, align 4, !tbaa !5
  %208 = load i32, ptr %15, align 4, !tbaa !5
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %211, label %210

210:                                              ; preds = %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %341

211:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  %212 = load i32, ptr %15, align 4, !tbaa !5
  %213 = load i32, ptr %24, align 4, !tbaa !5
  %214 = sub nsw i32 %212, %213
  %215 = load i32, ptr %15, align 4, !tbaa !5
  %216 = sub nsw i32 %215, 1
  %217 = and i32 %214, %216
  store i32 %217, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #4
  %218 = load i32, ptr %24, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 0, i64 %219
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #4
  %221 = load i32, ptr %25, align 4, !tbaa !5
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 0, i64 %222
  %224 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %223)
  %225 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %226 = extractvalue { double, double } %224, 0
  store double %226, ptr %225, align 8
  %227 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %228 = extractvalue { double, double } %224, 1
  store double %228, ptr %227, align 8
  %229 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %220, ptr noundef nonnull align 8 dereferenceable(16) %28)
  %230 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %231 = extractvalue { double, double } %229, 0
  store double %231, ptr %230, align 8
  %232 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %233 = extractvalue { double, double } %229, 1
  store double %233, ptr %232, align 8
  %234 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %235 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %236 = extractvalue { double, double } %234, 0
  store double %236, ptr %235, align 8
  %237 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %238 = extractvalue { double, double } %234, 1
  store double %238, ptr %237, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #4
  %239 = load i32, ptr %24, align 4, !tbaa !5
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 0, i64 %240
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #4
  %242 = load i32, ptr %25, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 0, i64 %243
  %245 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %244)
  %246 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %247 = extractvalue { double, double } %245, 0
  store double %247, ptr %246, align 8
  %248 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %249 = extractvalue { double, double } %245, 1
  store double %249, ptr %248, align 8
  %250 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %241, ptr noundef nonnull align 8 dereferenceable(16) %31)
  %251 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %252 = extractvalue { double, double } %250, 0
  store double %252, ptr %251, align 8
  %253 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %254 = extractvalue { double, double } %250, 1
  store double %254, ptr %253, align 8
  %255 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %256 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %257 = extractvalue { double, double } %255, 0
  store double %257, ptr %256, align 8
  %258 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %259 = extractvalue { double, double } %255, 1
  store double %259, ptr %258, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #4
  %260 = load i32, ptr %24, align 4, !tbaa !5
  %261 = sext i32 %260 to i64
  %262 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 0, i64 %261
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #4
  %263 = load i32, ptr %25, align 4, !tbaa !5
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 0, i64 %264
  %266 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %265)
  %267 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %268 = extractvalue { double, double } %266, 0
  store double %268, ptr %267, align 8
  %269 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %270 = extractvalue { double, double } %266, 1
  store double %270, ptr %269, align 8
  %271 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %262, ptr noundef nonnull align 8 dereferenceable(16) %34)
  %272 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %273 = extractvalue { double, double } %271, 0
  store double %273, ptr %272, align 8
  %274 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %275 = extractvalue { double, double } %271, 1
  store double %275, ptr %274, align 8
  %276 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %277 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %278 = extractvalue { double, double } %276, 0
  store double %278, ptr %277, align 8
  %279 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %280 = extractvalue { double, double } %276, 1
  store double %280, ptr %279, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #4
  %281 = load i32, ptr %24, align 4, !tbaa !5
  %282 = sext i32 %281 to i64
  %283 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 0, i64 %282
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #4
  %284 = load i32, ptr %25, align 4, !tbaa !5
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 0, i64 %285
  %287 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %286)
  %288 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %289 = extractvalue { double, double } %287, 0
  store double %289, ptr %288, align 8
  %290 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %291 = extractvalue { double, double } %287, 1
  store double %291, ptr %290, align 8
  %292 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %283, ptr noundef nonnull align 8 dereferenceable(16) %37)
  %293 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %294 = extractvalue { double, double } %292, 0
  store double %294, ptr %293, align 8
  %295 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %296 = extractvalue { double, double } %292, 1
  store double %296, ptr %295, align 8
  %297 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %22)
  %298 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %299 = extractvalue { double, double } %297, 0
  store double %299, ptr %298, align 8
  %300 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %301 = extractvalue { double, double } %297, 1
  store double %301, ptr %300, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #4
  %302 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %303 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %304 = extractvalue { double, double } %302, 0
  store double %304, ptr %303, align 8
  %305 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %306 = extractvalue { double, double } %302, 1
  store double %306, ptr %305, align 8
  %307 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %40)
  %308 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %309 = extractvalue { double, double } %307, 0
  store double %309, ptr %308, align 8
  %310 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %311 = extractvalue { double, double } %307, 1
  store double %311, ptr %310, align 8
  %312 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(16) %39)
  %313 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %314 = extractvalue { double, double } %312, 0
  store double %314, ptr %313, align 8
  %315 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %316 = extractvalue { double, double } %312, 1
  store double %316, ptr %315, align 8
  %317 = load i32, ptr %24, align 4, !tbaa !5
  %318 = sext i32 %317 to i64
  %319 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1C, i64 0, i64 %318
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %319, ptr align 8 %38, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %43) #4
  %320 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %23)
  %321 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 0
  %322 = extractvalue { double, double } %320, 0
  store double %322, ptr %321, align 8
  %323 = getelementptr inbounds { double, double }, ptr %43, i32 0, i32 1
  %324 = extractvalue { double, double } %320, 1
  store double %324, ptr %323, align 8
  %325 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(16) %43)
  %326 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %327 = extractvalue { double, double } %325, 0
  store double %327, ptr %326, align 8
  %328 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %329 = extractvalue { double, double } %325, 1
  store double %329, ptr %328, align 8
  %330 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(16) %42)
  %331 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %332 = extractvalue { double, double } %330, 0
  store double %332, ptr %331, align 8
  %333 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %334 = extractvalue { double, double } %330, 1
  store double %334, ptr %333, align 8
  %335 = load i32, ptr %24, align 4, !tbaa !5
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1D, i64 0, i64 %336
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %337, ptr align 8 %41, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  br label %338

338:                                              ; preds = %211
  %339 = load i32, ptr %24, align 4, !tbaa !5
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %24, align 4, !tbaa !5
  br label %206, !llvm.loop !23

341:                                              ; preds = %210
  %342 = load i32, ptr %15, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %342, ptr noundef @_ZZ9poly_conviPiiS_iS_bE1C, i32 noundef -1)
  %343 = load i32, ptr %15, align 4, !tbaa !5
  call void @_Z3FFTiP7complexi(i32 noundef %343, ptr noundef @_ZZ9poly_conviPiiS_iS_bE1D, i32 noundef -1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %344

344:                                              ; preds = %419, %341
  %345 = load i32, ptr %44, align 4, !tbaa !5
  %346 = load i32, ptr %12, align 4, !tbaa !5
  %347 = icmp slt i32 %345, %346
  br i1 %347, label %349, label %348

348:                                              ; preds = %344
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  br label %422

349:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  %350 = load i32, ptr %44, align 4, !tbaa !5
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1C, i64 0, i64 %351
  %353 = getelementptr inbounds %struct.complex, ptr %352, i32 0, i32 0
  %354 = load double, ptr %353, align 16, !tbaa !24
  %355 = fadd double %354, 5.000000e-01
  %356 = fptosi double %355 to i64
  %357 = load i32, ptr @mod, align 4, !tbaa !5
  %358 = sext i32 %357 to i64
  %359 = srem i64 %356, %358
  %360 = trunc i64 %359 to i32
  store i32 %360, ptr %45, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #4
  %361 = load i32, ptr %44, align 4, !tbaa !5
  %362 = sext i32 %361 to i64
  %363 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1C, i64 0, i64 %362
  %364 = getelementptr inbounds %struct.complex, ptr %363, i32 0, i32 1
  %365 = load double, ptr %364, align 8, !tbaa !26
  %366 = fadd double %365, 5.000000e-01
  %367 = fptosi double %366 to i64
  %368 = load i32, ptr @mod, align 4, !tbaa !5
  %369 = sext i32 %368 to i64
  %370 = srem i64 %367, %369
  %371 = trunc i64 %370 to i32
  store i32 %371, ptr %46, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #4
  %372 = load i32, ptr %44, align 4, !tbaa !5
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1D, i64 0, i64 %373
  %375 = getelementptr inbounds %struct.complex, ptr %374, i32 0, i32 0
  %376 = load double, ptr %375, align 16, !tbaa !24
  %377 = fadd double %376, 5.000000e-01
  %378 = fptosi double %377 to i64
  %379 = load i32, ptr @mod, align 4, !tbaa !5
  %380 = sext i32 %379 to i64
  %381 = srem i64 %378, %380
  %382 = trunc i64 %381 to i32
  store i32 %382, ptr %47, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #4
  %383 = load i32, ptr %44, align 4, !tbaa !5
  %384 = sext i32 %383 to i64
  %385 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1D, i64 0, i64 %384
  %386 = getelementptr inbounds %struct.complex, ptr %385, i32 0, i32 1
  %387 = load double, ptr %386, align 8, !tbaa !26
  %388 = fadd double %387, 5.000000e-01
  %389 = fptosi double %388 to i64
  %390 = load i32, ptr @mod, align 4, !tbaa !5
  %391 = sext i32 %390 to i64
  %392 = srem i64 %389, %391
  %393 = trunc i64 %392 to i32
  store i32 %393, ptr %48, align 4, !tbaa !5
  %394 = load i32, ptr %48, align 4, !tbaa !5
  %395 = sext i32 %394 to i64
  %396 = load i32, ptr @sp, align 4, !tbaa !5
  %397 = zext i32 %396 to i64
  %398 = shl i64 %395, %397
  %399 = load i32, ptr %46, align 4, !tbaa !5
  %400 = sext i32 %399 to i64
  %401 = add nsw i64 %398, %400
  %402 = load i32, ptr %47, align 4, !tbaa !5
  %403 = sext i32 %402 to i64
  %404 = add nsw i64 %401, %403
  %405 = load i32, ptr @sp, align 4, !tbaa !5
  %406 = zext i32 %405 to i64
  %407 = shl i64 %404, %406
  %408 = load i32, ptr %45, align 4, !tbaa !5
  %409 = sext i32 %408 to i64
  %410 = add nsw i64 %407, %409
  %411 = load i32, ptr @mod, align 4, !tbaa !5
  %412 = sext i32 %411 to i64
  %413 = srem i64 %410, %412
  %414 = trunc i64 %413 to i32
  %415 = load ptr, ptr %13, align 8, !tbaa !9
  %416 = load i32, ptr %44, align 4, !tbaa !5
  %417 = sext i32 %416 to i64
  %418 = getelementptr inbounds i32, ptr %415, i64 %417
  store i32 %414, ptr %418, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  br label %419

419:                                              ; preds = %349
  %420 = load i32, ptr %44, align 4, !tbaa !5
  %421 = add nsw i32 %420, 1
  store i32 %421, ptr %44, align 4, !tbaa !5
  br label %344, !llvm.loop !27

422:                                              ; preds = %348
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  ret void

423:                                              ; preds = %125, %121, %117, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %424

424:                                              ; preds = %423
  %425 = load ptr, ptr %16, align 8
  %426 = load i32, ptr %17, align 4
  %427 = insertvalue { ptr, i32 } poison, ptr %425, 0
  %428 = insertvalue { ptr, i32 } %427, i32 %426, 1
  resume { ptr, i32 } %428
}

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @__cxa_guard_abort(ptr) #4

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #4

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"branch_weights", i32 1, i32 1048575}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{i64 0, i64 8, !20, i64 8, i64 8, !20}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !17}
!23 = distinct !{!23, !17}
!24 = !{!25, !21, i64 0}
!25 = !{!"_ZTS7complex", !21, i64 0, !21, i64 8}
!26 = !{!25, !21, i64 8}
!27 = distinct !{!27, !17}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.complex = type { double, double }

@mod = external dso_local local_unnamed_addr global i32, align 4
@sp = external dso_local local_unnamed_addr global i32, align 4
@msk = external dso_local local_unnamed_addr global i32, align 4
@_ZZ9poly_conviPiiS_iS_bE1A = external hidden global [65537 x %struct.complex], align 16
@_ZGVZ9poly_conviPiiS_iS_bE1A = external hidden global i64, align 8
@_ZZ9poly_conviPiiS_iS_bE1B = external hidden global [65537 x %struct.complex], align 16
@_ZGVZ9poly_conviPiiS_iS_bE1B = external hidden global i64, align 8
@_ZZ9poly_conviPiiS_iS_bE1C = external hidden global [65537 x %struct.complex], align 16
@_ZGVZ9poly_conviPiiS_iS_bE1C = external hidden global i64, align 8
@_ZZ9poly_conviPiiS_iS_bE1D = external hidden global [65537 x %struct.complex], align 16
@_ZGVZ9poly_conviPiiS_iS_bE1D = external hidden global i64, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #0 align 2

; 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 nounwind uwtable
declare dso_local void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3FFTiP7complexi(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z9poly_conviPiiS_iS_b(i32 noundef %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, ptr nocapture noundef writeonly %5, i1 noundef zeroext %6) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %8 = alloca %struct.complex, align 8
  %9 = alloca %struct.complex, align 8
  %10 = alloca %struct.complex, align 8
  %11 = alloca %struct.complex, align 8
  %12 = alloca %struct.complex, align 8
  %13 = alloca %struct.complex, align 8
  %14 = alloca %struct.complex, align 8
  %15 = alloca %struct.complex, align 8
  %16 = alloca %struct.complex, align 8
  %17 = alloca %struct.complex, align 8
  %18 = alloca %struct.complex, align 8
  %19 = alloca %struct.complex, align 8
  %20 = alloca %struct.complex, align 8
  %21 = alloca %struct.complex, align 8
  %22 = alloca %struct.complex, align 8
  %23 = alloca %struct.complex, align 8
  %24 = alloca %struct.complex, align 8
  %25 = alloca %struct.complex, align 8
  %26 = alloca %struct.complex, align 8
  %27 = alloca %struct.complex, align 8
  %28 = alloca %struct.complex, align 8
  %29 = load atomic i8, ptr @_ZGVZ9poly_conviPiiS_iS_bE1A acquire, align 8
  %30 = icmp eq i8 %29, 0
  br i1 %30, label %31, label %35, !prof !5

31:                                               ; preds = %7
  %32 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ9poly_conviPiiS_iS_bE1A) #5
  %.not = icmp eq i32 %32, 0
  br i1 %.not, label %35, label %.preheader86

.preheader86:                                     ; preds = %31, %.preheader86
  %.idx = phi i64 [ %.add, %.preheader86 ], [ 0, %31 ]
  %.ptr = getelementptr inbounds i8, ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 %.idx
  tail call void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr)
  %.add = add nuw nsw i64 %.idx, 16
  %33 = icmp eq i64 %.add, 1048592
  br i1 %33, label %34, label %.preheader86

34:                                               ; preds = %.preheader86
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ9poly_conviPiiS_iS_bE1A) #5
  br label %35

35:                                               ; preds = %34, %31, %7
  %36 = load atomic i8, ptr @_ZGVZ9poly_conviPiiS_iS_bE1B acquire, align 8
  %37 = icmp eq i8 %36, 0
  br i1 %37, label %38, label %42, !prof !5

38:                                               ; preds = %35
  %39 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ9poly_conviPiiS_iS_bE1B) #5
  %.not63 = icmp eq i32 %39, 0
  br i1 %.not63, label %42, label %.preheader85

.preheader85:                                     ; preds = %38, %.preheader85
  %.idx64 = phi i64 [ %.add65, %.preheader85 ], [ 0, %38 ]
  %.ptr66 = getelementptr inbounds i8, ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 %.idx64
  tail call void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr66)
  %.add65 = add nuw nsw i64 %.idx64, 16
  %40 = icmp eq i64 %.add65, 1048592
  br i1 %40, label %41, label %.preheader85

41:                                               ; preds = %.preheader85
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ9poly_conviPiiS_iS_bE1B) #5
  br label %42

42:                                               ; preds = %41, %38, %35
  %43 = load atomic i8, ptr @_ZGVZ9poly_conviPiiS_iS_bE1C acquire, align 8
  %44 = icmp eq i8 %43, 0
  br i1 %44, label %45, label %49, !prof !5

45:                                               ; preds = %42
  %46 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ9poly_conviPiiS_iS_bE1C) #5
  %.not68 = icmp eq i32 %46, 0
  br i1 %.not68, label %49, label %.preheader84

.preheader84:                                     ; preds = %45, %.preheader84
  %.idx69 = phi i64 [ %.add70, %.preheader84 ], [ 0, %45 ]
  %.ptr71 = getelementptr inbounds i8, ptr @_ZZ9poly_conviPiiS_iS_bE1C, i64 %.idx69
  tail call void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr71)
  %.add70 = add nuw nsw i64 %.idx69, 16
  %47 = icmp eq i64 %.add70, 1048592
  br i1 %47, label %48, label %.preheader84

48:                                               ; preds = %.preheader84
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ9poly_conviPiiS_iS_bE1C) #5
  br label %49

49:                                               ; preds = %48, %45, %42
  %50 = load atomic i8, ptr @_ZGVZ9poly_conviPiiS_iS_bE1D acquire, align 8
  %51 = icmp eq i8 %50, 0
  br i1 %51, label %52, label %56, !prof !5

52:                                               ; preds = %49
  %53 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZ9poly_conviPiiS_iS_bE1D) #5
  %.not73 = icmp eq i32 %53, 0
  br i1 %.not73, label %56, label %.preheader83

.preheader83:                                     ; preds = %52, %.preheader83
  %.idx74 = phi i64 [ %.add75, %.preheader83 ], [ 0, %52 ]
  %.ptr76 = getelementptr inbounds i8, ptr @_ZZ9poly_conviPiiS_iS_bE1D, i64 %.idx74
  tail call void @_ZN7complexC2Ev(ptr noundef nonnull align 8 dereferenceable(16) %.ptr76)
  %.add75 = add nuw nsw i64 %.idx74, 16
  %54 = icmp eq i64 %.add75, 1048592
  br i1 %54, label %55, label %.preheader83

55:                                               ; preds = %.preheader83
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZ9poly_conviPiiS_iS_bE1D) #5
  br label %56

56:                                               ; preds = %55, %52, %49
  br i1 %6, label %.preheader, label %.preheader81

.preheader81:                                     ; preds = %56
  %57 = add i32 %0, -1
  %58 = add i32 %57, %2
  br label %61

.preheader:                                       ; preds = %56, %.preheader
  %.0 = phi i32 [ %60, %.preheader ], [ 1, %56 ]
  %59 = icmp slt i32 %.0, %4
  %60 = shl i32 %.0, 1
  br i1 %59, label %.preheader, label %.loopexit, !llvm.loop !6

61:                                               ; preds = %61, %.preheader81
  %.1 = phi i32 [ %63, %61 ], [ 1, %.preheader81 ]
  %62 = icmp slt i32 %.1, %58
  %63 = shl i32 %.1, 1
  br i1 %62, label %61, label %.loopexit, !llvm.loop !8

.loopexit:                                        ; preds = %61, %.preheader
  %.2 = phi i32 [ %.0, %.preheader ], [ %.1, %61 ]
  %64 = icmp sgt i32 %.2, 0
  br i1 %64, label %.lr.ph.preheader, label %._crit_edge91.critedge

.lr.ph.preheader:                                 ; preds = %.loopexit
  %65 = sext i32 %0 to i64
  %66 = sext i32 %2 to i64
  %wide.trip.count = zext nneg i32 %.2 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %108
  call void @_Z3FFTiP7complexi(i32 noundef %.2, ptr noundef nonnull @_ZZ9poly_conviPiiS_iS_bE1A, i32 noundef 1)
  call void @_Z3FFTiP7complexi(i32 noundef %.2, ptr noundef nonnull @_ZZ9poly_conviPiiS_iS_bE1B, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef 5.000000e-01, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 0.000000e+00, double noundef -5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef 0.000000e+00, double noundef 1.000000e+00)
  br i1 %64, label %.lr.ph90, label %._crit_edge91

.lr.ph90:                                         ; preds = %._crit_edge
  %67 = add nsw i32 %.2, -1
  %68 = getelementptr inbounds i8, ptr %15, i64 8
  %69 = getelementptr inbounds i8, ptr %14, i64 8
  %70 = getelementptr inbounds i8, ptr %13, i64 8
  %71 = getelementptr inbounds i8, ptr %18, i64 8
  %72 = getelementptr inbounds i8, ptr %17, i64 8
  %73 = getelementptr inbounds i8, ptr %16, i64 8
  %74 = getelementptr inbounds i8, ptr %21, i64 8
  %75 = getelementptr inbounds i8, ptr %20, i64 8
  %76 = getelementptr inbounds i8, ptr %19, i64 8
  %77 = getelementptr inbounds i8, ptr %24, i64 8
  %78 = getelementptr inbounds i8, ptr %23, i64 8
  %79 = getelementptr inbounds i8, ptr %22, i64 8
  %80 = getelementptr inbounds i8, ptr %26, i64 8
  %81 = getelementptr inbounds i8, ptr %25, i64 8
  %82 = getelementptr inbounds i8, ptr %28, i64 8
  %83 = getelementptr inbounds i8, ptr %27, i64 8
  %wide.trip.count101 = zext nneg i32 %.2 to i64
  br label %111

.lr.ph:                                           ; preds = %.lr.ph.preheader, %108
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %108 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #5
  %84 = icmp slt i64 %indvars.iv, %65
  br i1 %84, label %85, label %94

85:                                               ; preds = %.lr.ph
  %86 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = load i32, ptr @msk, align 4, !tbaa !9
  %89 = and i32 %88, %87
  %90 = sitofp i32 %89 to double
  %91 = load i32, ptr @sp, align 4, !tbaa !9
  %92 = ashr i32 %87, %91
  %93 = sitofp i32 %92 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef %90, double noundef %93)
  br label %95

94:                                               ; preds = %.lr.ph
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %8, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %95

95:                                               ; preds = %94, %85
  %96 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %96, ptr noundef nonnull align 8 dereferenceable(16) %8, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #5
  %97 = icmp slt i64 %indvars.iv, %66
  br i1 %97, label %98, label %107

98:                                               ; preds = %95
  %99 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = load i32, ptr @msk, align 4, !tbaa !9
  %102 = and i32 %101, %100
  %103 = sitofp i32 %102 to double
  %104 = load i32, ptr @sp, align 4, !tbaa !9
  %105 = ashr i32 %100, %104
  %106 = sitofp i32 %105 to double
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef %103, double noundef %106)
  br label %108

107:                                              ; preds = %95
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %9, double noundef 0.000000e+00, double noundef 0.000000e+00)
  br label %108

108:                                              ; preds = %107, %98
  %109 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 0, i64 %indvars.iv
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %109, ptr noundef nonnull align 8 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16

._crit_edge91.critedge:                           ; preds = %.loopexit
  tail call void @_Z3FFTiP7complexi(i32 noundef %.2, ptr noundef nonnull @_ZZ9poly_conviPiiS_iS_bE1A, i32 noundef 1)
  tail call void @_Z3FFTiP7complexi(i32 noundef %.2, ptr noundef nonnull @_ZZ9poly_conviPiiS_iS_bE1B, i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #5
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %10, double noundef 5.000000e-01, double noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #5
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %11, double noundef 0.000000e+00, double noundef -5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @_ZN7complexC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %12, double noundef 0.000000e+00, double noundef 1.000000e+00)
  br label %._crit_edge91

._crit_edge91:                                    ; preds = %111, %._crit_edge91.critedge, %._crit_edge
  call void @_Z3FFTiP7complexi(i32 noundef %.2, ptr noundef nonnull @_ZZ9poly_conviPiiS_iS_bE1C, i32 noundef -1)
  call void @_Z3FFTiP7complexi(i32 noundef %.2, ptr noundef nonnull @_ZZ9poly_conviPiiS_iS_bE1D, i32 noundef -1)
  %110 = icmp sgt i32 %4, 0
  br i1 %110, label %.lr.ph94.preheader, label %._crit_edge95

.lr.ph94.preheader:                               ; preds = %._crit_edge91
  %wide.trip.count106 = zext nneg i32 %4 to i64
  br label %.lr.ph94

111:                                              ; preds = %.lr.ph90, %111
  %indvars.iv98 = phi i64 [ 0, %.lr.ph90 ], [ %indvars.iv.next99, %111 ]
  %112 = trunc i64 %indvars.iv98 to i32
  %113 = sub i32 %.2, %112
  %114 = and i32 %113, %67
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #5
  %115 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 0, i64 %indvars.iv98
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #5
  %116 = sext i32 %114 to i64
  %117 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1A, i64 0, i64 %116
  %118 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %117)
  %119 = extractvalue { double, double } %118, 0
  store double %119, ptr %15, align 8
  %120 = extractvalue { double, double } %118, 1
  store double %120, ptr %68, align 8
  %121 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %115, ptr noundef nonnull align 8 dereferenceable(16) %15)
  %122 = extractvalue { double, double } %121, 0
  store double %122, ptr %14, align 8
  %123 = extractvalue { double, double } %121, 1
  store double %123, ptr %69, align 8
  %124 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %10)
  %125 = extractvalue { double, double } %124, 0
  store double %125, ptr %13, align 8
  %126 = extractvalue { double, double } %124, 1
  store double %126, ptr %70, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #5
  %127 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %117)
  %128 = extractvalue { double, double } %127, 0
  store double %128, ptr %18, align 8
  %129 = extractvalue { double, double } %127, 1
  store double %129, ptr %71, align 8
  %130 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %115, ptr noundef nonnull align 8 dereferenceable(16) %18)
  %131 = extractvalue { double, double } %130, 0
  store double %131, ptr %17, align 8
  %132 = extractvalue { double, double } %130, 1
  store double %132, ptr %72, align 8
  %133 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %134 = extractvalue { double, double } %133, 0
  store double %134, ptr %16, align 8
  %135 = extractvalue { double, double } %133, 1
  store double %135, ptr %73, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #5
  %136 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 0, i64 %indvars.iv98
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #5
  %137 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1B, i64 0, i64 %116
  %138 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %137)
  %139 = extractvalue { double, double } %138, 0
  store double %139, ptr %21, align 8
  %140 = extractvalue { double, double } %138, 1
  store double %140, ptr %74, align 8
  %141 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %136, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %142 = extractvalue { double, double } %141, 0
  store double %142, ptr %20, align 8
  %143 = extractvalue { double, double } %141, 1
  store double %143, ptr %75, align 8
  %144 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %10)
  %145 = extractvalue { double, double } %144, 0
  store double %145, ptr %19, align 8
  %146 = extractvalue { double, double } %144, 1
  store double %146, ptr %76, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %22) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #5
  %147 = call { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16) %137)
  %148 = extractvalue { double, double } %147, 0
  store double %148, ptr %24, align 8
  %149 = extractvalue { double, double } %147, 1
  store double %149, ptr %77, align 8
  %150 = call { double, double } @_ZNK7complexmiERKS_(ptr noundef nonnull align 8 dereferenceable(16) %136, ptr noundef nonnull align 8 dereferenceable(16) %24)
  %151 = extractvalue { double, double } %150, 0
  store double %151, ptr %23, align 8
  %152 = extractvalue { double, double } %150, 1
  store double %152, ptr %78, align 8
  %153 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(16) %11)
  %154 = extractvalue { double, double } %153, 0
  store double %154, ptr %22, align 8
  %155 = extractvalue { double, double } %153, 1
  store double %155, ptr %79, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %26) #5
  %156 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %157 = extractvalue { double, double } %156, 0
  store double %157, ptr %26, align 8
  %158 = extractvalue { double, double } %156, 1
  store double %158, ptr %80, align 8
  %159 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %26)
  %160 = extractvalue { double, double } %159, 0
  store double %160, ptr %25, align 8
  %161 = extractvalue { double, double } %159, 1
  store double %161, ptr %81, align 8
  %162 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(16) %25)
  %163 = extractvalue { double, double } %162, 0
  %164 = extractvalue { double, double } %162, 1
  %165 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1C, i64 0, i64 %indvars.iv98
  store double %163, ptr %165, align 16, !tbaa !14
  %.sroa.412.0..sroa_idx = getelementptr inbounds i8, ptr %165, i64 8
  store double %164, ptr %.sroa.412.0..sroa_idx, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %26) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %27) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %28) #5
  %166 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(16) %12)
  %167 = extractvalue { double, double } %166, 0
  store double %167, ptr %28, align 8
  %168 = extractvalue { double, double } %166, 1
  store double %168, ptr %82, align 8
  %169 = call { double, double } @_ZNK7complexplERKS_(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(16) %28)
  %170 = extractvalue { double, double } %169, 0
  store double %170, ptr %27, align 8
  %171 = extractvalue { double, double } %169, 1
  store double %171, ptr %83, align 8
  %172 = call { double, double } @_ZNK7complexmlERKS_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %27)
  %173 = extractvalue { double, double } %172, 0
  %174 = extractvalue { double, double } %172, 1
  %175 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1D, i64 0, i64 %indvars.iv98
  store double %173, ptr %175, align 16, !tbaa !14
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %175, i64 8
  store double %174, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %28) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %27) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %22) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #5
  %indvars.iv.next99 = add nuw nsw i64 %indvars.iv98, 1
  %exitcond102.not = icmp eq i64 %indvars.iv.next99, %wide.trip.count101
  br i1 %exitcond102.not, label %._crit_edge91, label %111, !llvm.loop !17

._crit_edge95:                                    ; preds = %.lr.ph94, %._crit_edge91
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #5
  ret void

.lr.ph94:                                         ; preds = %.lr.ph94.preheader, %.lr.ph94
  %indvars.iv103 = phi i64 [ 0, %.lr.ph94.preheader ], [ %indvars.iv.next104, %.lr.ph94 ]
  %176 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1C, i64 0, i64 %indvars.iv103
  %177 = load double, ptr %176, align 16, !tbaa !18
  %178 = fadd double %177, 5.000000e-01
  %179 = fptosi double %178 to i64
  %180 = load i32, ptr @mod, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = srem i64 %179, %181
  %183 = getelementptr inbounds i8, ptr %176, i64 8
  %184 = load double, ptr %183, align 8, !tbaa !20
  %185 = fadd double %184, 5.000000e-01
  %186 = fptosi double %185 to i64
  %187 = srem i64 %186, %181
  %188 = getelementptr inbounds [65537 x %struct.complex], ptr @_ZZ9poly_conviPiiS_iS_bE1D, i64 0, i64 %indvars.iv103
  %189 = load double, ptr %188, align 16, !tbaa !18
  %190 = fadd double %189, 5.000000e-01
  %191 = fptosi double %190 to i64
  %192 = srem i64 %191, %181
  %193 = getelementptr inbounds i8, ptr %188, i64 8
  %194 = load double, ptr %193, align 8, !tbaa !20
  %195 = fadd double %194, 5.000000e-01
  %196 = fptosi double %195 to i64
  %197 = srem i64 %196, %181
  %198 = load i32, ptr @sp, align 4, !tbaa !9
  %199 = zext i32 %198 to i64
  %200 = shl i64 %197, %199
  %201 = add nsw i64 %192, %187
  %202 = add i64 %201, %200
  %203 = shl i64 %202, %199
  %204 = add nsw i64 %203, %182
  %205 = srem i64 %204, %181
  %206 = trunc nsw i64 %205 to i32
  %207 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv103
  store i32 %206, ptr %207, align 4, !tbaa !9
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %exitcond107.not = icmp eq i64 %indvars.iv.next104, %wide.trip.count106
  br i1 %exitcond107.not, label %._crit_edge95, label %.lr.ph94, !llvm.loop !21
}

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local { double, double } @_ZNK7complex4conjEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nofree nounwind }
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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = distinct !{!6, !7}
!7 = !{!"llvm.loop.mustprogress"}
!8 = distinct !{!8, !7}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{i64 0, i64 8, !14, i64 8, i64 8, !14}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !11, i64 0}
!16 = distinct !{!16, !7}
!17 = distinct !{!17, !7}
!18 = !{!19, !15, i64 0}
!19 = !{!"_ZTS7complex", !15, i64 0, !15, i64 8}
!20 = !{!19, !15, i64 8}
!21 = distinct !{!21, !7}


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