; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/TESTING/MATGEN (zlatm1)

; 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.doublecomplex = type { double, double }

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@c__3 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @zlatm1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca %struct.doublecomplex, align 8
  %22 = alloca %struct.doublecomplex, align 8
  %23 = alloca double, align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca %struct.doublecomplex, align 8
  %27 = alloca i32, align 4
  %28 = alloca %struct.doublecomplex, align 8
  %29 = alloca { double, double }, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #7
  %30 = load ptr, ptr %14, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.doublecomplex, ptr %30, i32 -1
  store ptr %31, ptr %14, align 8, !tbaa !5
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %32, i32 -1
  store ptr %33, ptr %13, align 8, !tbaa !5
  %34 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %34, align 4, !tbaa !9
  %35 = load ptr, ptr %15, align 8, !tbaa !5
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = icmp eq i32 %36, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %8
  store i32 1, ptr %27, align 4
  br label %562

39:                                               ; preds = %8
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = load i32, ptr %40, align 4, !tbaa !9
  %42 = icmp slt i32 %41, -6
  br i1 %42, label %47, label %43

43:                                               ; preds = %39
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = icmp sgt i32 %45, 6
  br i1 %46, label %47, label %49

47:                                               ; preds = %43, %39
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -1, ptr %48, align 4, !tbaa !9
  br label %117

49:                                               ; preds = %43
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = icmp ne i32 %51, -6
  br i1 %52, label %53, label %71

53:                                               ; preds = %49
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %57, label %71

57:                                               ; preds = %53
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 6
  br i1 %60, label %61, label %71

61:                                               ; preds = %57
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %71

65:                                               ; preds = %61
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = icmp ne i32 %67, 1
  br i1 %68, label %69, label %71

69:                                               ; preds = %65
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -2, ptr %70, align 4, !tbaa !9
  br label %116

71:                                               ; preds = %65, %61, %57, %53, %49
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = icmp ne i32 %73, -6
  br i1 %74, label %75, label %89

75:                                               ; preds = %71
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load i32, ptr %76, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %89

79:                                               ; preds = %75
  %80 = load ptr, ptr %9, align 8, !tbaa !5
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = icmp ne i32 %81, 6
  br i1 %82, label %83, label %89

83:                                               ; preds = %79
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = fcmp olt double %85, 1.000000e+00
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -3, ptr %88, align 4, !tbaa !9
  br label %115

89:                                               ; preds = %83, %79, %75, %71
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = icmp eq i32 %91, 6
  br i1 %92, label %97, label %93

93:                                               ; preds = %89
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = icmp eq i32 %95, -6
  br i1 %96, label %97, label %107

97:                                               ; preds = %93, %89
  %98 = load ptr, ptr %12, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = icmp slt i32 %99, 1
  br i1 %100, label %105, label %101

101:                                              ; preds = %97
  %102 = load ptr, ptr %12, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp sgt i32 %103, 4
  br i1 %104, label %105, label %107

105:                                              ; preds = %101, %97
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -4, ptr %106, align 4, !tbaa !9
  br label %114

107:                                              ; preds = %101, %93
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = icmp slt i32 %109, 0
  br i1 %110, label %111, label %113

111:                                              ; preds = %107
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 -7, ptr %112, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %111, %107
  br label %114

114:                                              ; preds = %113, %105
  br label %115

115:                                              ; preds = %114, %87
  br label %116

116:                                              ; preds = %115, %69
  br label %117

117:                                              ; preds = %116, %47
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %126

121:                                              ; preds = %117
  %122 = load ptr, ptr %16, align 8, !tbaa !5
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = sub nsw i32 0, %123
  store i32 %124, ptr %17, align 4, !tbaa !9
  %125 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %17, i32 noundef 6)
  store i32 1, ptr %27, align 4
  br label %562

126:                                              ; preds = %117
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = icmp ne i32 %128, 0
  br i1 %129, label %130, label %561

130:                                              ; preds = %126
  %131 = load ptr, ptr %9, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = icmp sge i32 %132, 0
  br i1 %133, label %134, label %137

134:                                              ; preds = %130
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !9
  br label %141

137:                                              ; preds = %130
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = sub nsw i32 0, %139
  br label %141

141:                                              ; preds = %137, %134
  %142 = phi i32 [ %136, %134 ], [ %140, %137 ]
  switch i32 %142, label %149 [
    i32 1, label %143
    i32 2, label %144
    i32 3, label %145
    i32 4, label %146
    i32 5, label %147
    i32 6, label %148
  ]

143:                                              ; preds = %141
  br label %150

144:                                              ; preds = %141
  br label %183

145:                                              ; preds = %141
  br label %222

146:                                              ; preds = %141
  br label %271

147:                                              ; preds = %141
  br label %324

148:                                              ; preds = %141
  br label %358

149:                                              ; preds = %141
  br label %150

150:                                              ; preds = %149, %143
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = load i32, ptr %151, align 4, !tbaa !9
  store i32 %152, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %173, %150
  %154 = load i32, ptr %24, align 4, !tbaa !9
  %155 = load i32, ptr %17, align 4, !tbaa !9
  %156 = icmp sle i32 %154, %155
  br i1 %156, label %157, label %176

157:                                              ; preds = %153
  %158 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %158, ptr %18, align 4, !tbaa !9
  %159 = load ptr, ptr %10, align 8, !tbaa !5
  %160 = load double, ptr %159, align 8, !tbaa !11
  %161 = fdiv double 1.000000e+00, %160
  store double %161, ptr %20, align 8, !tbaa !11
  %162 = load double, ptr %20, align 8, !tbaa !11
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = load i32, ptr %18, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds %struct.doublecomplex, ptr %163, i64 %165
  %167 = getelementptr inbounds %struct.doublecomplex, ptr %166, i32 0, i32 0
  store double %162, ptr %167, align 8, !tbaa !13
  %168 = load ptr, ptr %14, align 8, !tbaa !5
  %169 = load i32, ptr %18, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds %struct.doublecomplex, ptr %168, i64 %170
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %171, i32 0, i32 1
  store double 0.000000e+00, ptr %172, align 8, !tbaa !15
  br label %173

173:                                              ; preds = %157
  %174 = load i32, ptr %24, align 4, !tbaa !9
  %175 = add nsw i32 %174, 1
  store i32 %175, ptr %24, align 4, !tbaa !9
  br label %153, !llvm.loop !16

176:                                              ; preds = %153
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.doublecomplex, ptr %177, i64 1
  %179 = getelementptr inbounds %struct.doublecomplex, ptr %178, i32 0, i32 0
  store double 1.000000e+00, ptr %179, align 8, !tbaa !13
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.doublecomplex, ptr %180, i64 1
  %182 = getelementptr inbounds %struct.doublecomplex, ptr %181, i32 0, i32 1
  store double 0.000000e+00, ptr %182, align 8, !tbaa !15
  br label %365

183:                                              ; preds = %144
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = load i32, ptr %184, align 4, !tbaa !9
  store i32 %185, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %202, %183
  %187 = load i32, ptr %24, align 4, !tbaa !9
  %188 = load i32, ptr %17, align 4, !tbaa !9
  %189 = icmp sle i32 %187, %188
  br i1 %189, label %190, label %205

190:                                              ; preds = %186
  %191 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %191, ptr %18, align 4, !tbaa !9
  %192 = load ptr, ptr %14, align 8, !tbaa !5
  %193 = load i32, ptr %18, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds %struct.doublecomplex, ptr %192, i64 %194
  %196 = getelementptr inbounds %struct.doublecomplex, ptr %195, i32 0, i32 0
  store double 1.000000e+00, ptr %196, align 8, !tbaa !13
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = load i32, ptr %18, align 4, !tbaa !9
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds %struct.doublecomplex, ptr %197, i64 %199
  %201 = getelementptr inbounds %struct.doublecomplex, ptr %200, i32 0, i32 1
  store double 0.000000e+00, ptr %201, align 8, !tbaa !15
  br label %202

202:                                              ; preds = %190
  %203 = load i32, ptr %24, align 4, !tbaa !9
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %24, align 4, !tbaa !9
  br label %186, !llvm.loop !18

205:                                              ; preds = %186
  %206 = load ptr, ptr %15, align 8, !tbaa !5
  %207 = load i32, ptr %206, align 4, !tbaa !9
  store i32 %207, ptr %17, align 4, !tbaa !9
  %208 = load ptr, ptr %10, align 8, !tbaa !5
  %209 = load double, ptr %208, align 8, !tbaa !11
  %210 = fdiv double 1.000000e+00, %209
  store double %210, ptr %20, align 8, !tbaa !11
  %211 = load double, ptr %20, align 8, !tbaa !11
  %212 = load ptr, ptr %14, align 8, !tbaa !5
  %213 = load i32, ptr %17, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %212, i64 %214
  %216 = getelementptr inbounds %struct.doublecomplex, ptr %215, i32 0, i32 0
  store double %211, ptr %216, align 8, !tbaa !13
  %217 = load ptr, ptr %14, align 8, !tbaa !5
  %218 = load i32, ptr %17, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds %struct.doublecomplex, ptr %217, i64 %219
  %221 = getelementptr inbounds %struct.doublecomplex, ptr %220, i32 0, i32 1
  store double 0.000000e+00, ptr %221, align 8, !tbaa !15
  br label %365

222:                                              ; preds = %145
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.doublecomplex, ptr %223, i64 1
  %225 = getelementptr inbounds %struct.doublecomplex, ptr %224, i32 0, i32 0
  store double 1.000000e+00, ptr %225, align 8, !tbaa !13
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.doublecomplex, ptr %226, i64 1
  %228 = getelementptr inbounds %struct.doublecomplex, ptr %227, i32 0, i32 1
  store double 0.000000e+00, ptr %228, align 8, !tbaa !15
  %229 = load ptr, ptr %15, align 8, !tbaa !5
  %230 = load i32, ptr %229, align 4, !tbaa !9
  %231 = icmp sgt i32 %230, 1
  br i1 %231, label %232, label %270

232:                                              ; preds = %222
  %233 = load ptr, ptr %15, align 8, !tbaa !5
  %234 = load i32, ptr %233, align 4, !tbaa !9
  %235 = sub nsw i32 %234, 1
  %236 = sitofp i32 %235 to double
  %237 = fdiv double -1.000000e+00, %236
  store double %237, ptr %20, align 8, !tbaa !11
  %238 = load ptr, ptr %10, align 8, !tbaa !5
  %239 = load double, ptr %238, align 8, !tbaa !11
  %240 = load double, ptr %20, align 8, !tbaa !11
  %241 = call double @pow(double noundef %239, double noundef %240) #7
  store double %241, ptr %25, align 8, !tbaa !11
  %242 = load ptr, ptr %15, align 8, !tbaa !5
  %243 = load i32, ptr %242, align 4, !tbaa !9
  store i32 %243, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %24, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %266, %232
  %245 = load i32, ptr %24, align 4, !tbaa !9
  %246 = load i32, ptr %17, align 4, !tbaa !9
  %247 = icmp sle i32 %245, %246
  br i1 %247, label %248, label %269

248:                                              ; preds = %244
  %249 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %249, ptr %18, align 4, !tbaa !9
  %250 = load i32, ptr %24, align 4, !tbaa !9
  %251 = sub nsw i32 %250, 1
  store i32 %251, ptr %19, align 4, !tbaa !9
  %252 = load double, ptr %25, align 8, !tbaa !11
  %253 = load i32, ptr %19, align 4, !tbaa !9
  %254 = call double @dpow_ui(double noundef %252, i32 noundef %253)
  store double %254, ptr %20, align 8, !tbaa !11
  %255 = load double, ptr %20, align 8, !tbaa !11
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  %257 = load i32, ptr %18, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds %struct.doublecomplex, ptr %256, i64 %258
  %260 = getelementptr inbounds %struct.doublecomplex, ptr %259, i32 0, i32 0
  store double %255, ptr %260, align 8, !tbaa !13
  %261 = load ptr, ptr %14, align 8, !tbaa !5
  %262 = load i32, ptr %18, align 4, !tbaa !9
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %struct.doublecomplex, ptr %261, i64 %263
  %265 = getelementptr inbounds %struct.doublecomplex, ptr %264, i32 0, i32 1
  store double 0.000000e+00, ptr %265, align 8, !tbaa !15
  br label %266

266:                                              ; preds = %248
  %267 = load i32, ptr %24, align 4, !tbaa !9
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %24, align 4, !tbaa !9
  br label %244, !llvm.loop !19

269:                                              ; preds = %244
  br label %270

270:                                              ; preds = %269, %222
  br label %365

271:                                              ; preds = %146
  %272 = load ptr, ptr %14, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.doublecomplex, ptr %272, i64 1
  %274 = getelementptr inbounds %struct.doublecomplex, ptr %273, i32 0, i32 0
  store double 1.000000e+00, ptr %274, align 8, !tbaa !13
  %275 = load ptr, ptr %14, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.doublecomplex, ptr %275, i64 1
  %277 = getelementptr inbounds %struct.doublecomplex, ptr %276, i32 0, i32 1
  store double 0.000000e+00, ptr %277, align 8, !tbaa !15
  %278 = load ptr, ptr %15, align 8, !tbaa !5
  %279 = load i32, ptr %278, align 4, !tbaa !9
  %280 = icmp sgt i32 %279, 1
  br i1 %280, label %281, label %323

281:                                              ; preds = %271
  %282 = load ptr, ptr %10, align 8, !tbaa !5
  %283 = load double, ptr %282, align 8, !tbaa !11
  %284 = fdiv double 1.000000e+00, %283
  store double %284, ptr %23, align 8, !tbaa !11
  %285 = load double, ptr %23, align 8, !tbaa !11
  %286 = fsub double 1.000000e+00, %285
  %287 = load ptr, ptr %15, align 8, !tbaa !5
  %288 = load i32, ptr %287, align 4, !tbaa !9
  %289 = sub nsw i32 %288, 1
  %290 = sitofp i32 %289 to double
  %291 = fdiv double %286, %290
  store double %291, ptr %25, align 8, !tbaa !11
  %292 = load ptr, ptr %15, align 8, !tbaa !5
  %293 = load i32, ptr %292, align 4, !tbaa !9
  store i32 %293, ptr %17, align 4, !tbaa !9
  store i32 2, ptr %24, align 4, !tbaa !9
  br label %294

294:                                              ; preds = %319, %281
  %295 = load i32, ptr %24, align 4, !tbaa !9
  %296 = load i32, ptr %17, align 4, !tbaa !9
  %297 = icmp sle i32 %295, %296
  br i1 %297, label %298, label %322

298:                                              ; preds = %294
  %299 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %299, ptr %18, align 4, !tbaa !9
  %300 = load ptr, ptr %15, align 8, !tbaa !5
  %301 = load i32, ptr %300, align 4, !tbaa !9
  %302 = load i32, ptr %24, align 4, !tbaa !9
  %303 = sub nsw i32 %301, %302
  %304 = sitofp i32 %303 to double
  %305 = load double, ptr %25, align 8, !tbaa !11
  %306 = load double, ptr %23, align 8, !tbaa !11
  %307 = call double @llvm.fmuladd.f64(double %304, double %305, double %306)
  store double %307, ptr %20, align 8, !tbaa !11
  %308 = load double, ptr %20, align 8, !tbaa !11
  %309 = load ptr, ptr %14, align 8, !tbaa !5
  %310 = load i32, ptr %18, align 4, !tbaa !9
  %311 = sext i32 %310 to i64
  %312 = getelementptr inbounds %struct.doublecomplex, ptr %309, i64 %311
  %313 = getelementptr inbounds %struct.doublecomplex, ptr %312, i32 0, i32 0
  store double %308, ptr %313, align 8, !tbaa !13
  %314 = load ptr, ptr %14, align 8, !tbaa !5
  %315 = load i32, ptr %18, align 4, !tbaa !9
  %316 = sext i32 %315 to i64
  %317 = getelementptr inbounds %struct.doublecomplex, ptr %314, i64 %316
  %318 = getelementptr inbounds %struct.doublecomplex, ptr %317, i32 0, i32 1
  store double 0.000000e+00, ptr %318, align 8, !tbaa !15
  br label %319

319:                                              ; preds = %298
  %320 = load i32, ptr %24, align 4, !tbaa !9
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %24, align 4, !tbaa !9
  br label %294, !llvm.loop !20

322:                                              ; preds = %294
  br label %323

323:                                              ; preds = %322, %271
  br label %365

324:                                              ; preds = %147
  %325 = load ptr, ptr %10, align 8, !tbaa !5
  %326 = load double, ptr %325, align 8, !tbaa !11
  %327 = fdiv double 1.000000e+00, %326
  %328 = call double @log(double noundef %327) #7
  store double %328, ptr %25, align 8, !tbaa !11
  %329 = load ptr, ptr %15, align 8, !tbaa !5
  %330 = load i32, ptr %329, align 4, !tbaa !9
  store i32 %330, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %331

331:                                              ; preds = %354, %324
  %332 = load i32, ptr %24, align 4, !tbaa !9
  %333 = load i32, ptr %17, align 4, !tbaa !9
  %334 = icmp sle i32 %332, %333
  br i1 %334, label %335, label %357

335:                                              ; preds = %331
  %336 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %336, ptr %18, align 4, !tbaa !9
  %337 = load double, ptr %25, align 8, !tbaa !11
  %338 = load ptr, ptr %13, align 8, !tbaa !5
  %339 = getelementptr inbounds i32, ptr %338, i64 1
  %340 = call double @dlaran_(ptr noundef %339)
  %341 = fmul double %337, %340
  %342 = call double @exp(double noundef %341) #7
  store double %342, ptr %20, align 8, !tbaa !11
  %343 = load double, ptr %20, align 8, !tbaa !11
  %344 = load ptr, ptr %14, align 8, !tbaa !5
  %345 = load i32, ptr %18, align 4, !tbaa !9
  %346 = sext i32 %345 to i64
  %347 = getelementptr inbounds %struct.doublecomplex, ptr %344, i64 %346
  %348 = getelementptr inbounds %struct.doublecomplex, ptr %347, i32 0, i32 0
  store double %343, ptr %348, align 8, !tbaa !13
  %349 = load ptr, ptr %14, align 8, !tbaa !5
  %350 = load i32, ptr %18, align 4, !tbaa !9
  %351 = sext i32 %350 to i64
  %352 = getelementptr inbounds %struct.doublecomplex, ptr %349, i64 %351
  %353 = getelementptr inbounds %struct.doublecomplex, ptr %352, i32 0, i32 1
  store double 0.000000e+00, ptr %353, align 8, !tbaa !15
  br label %354

354:                                              ; preds = %335
  %355 = load i32, ptr %24, align 4, !tbaa !9
  %356 = add nsw i32 %355, 1
  store i32 %356, ptr %24, align 4, !tbaa !9
  br label %331, !llvm.loop !21

357:                                              ; preds = %331
  br label %365

358:                                              ; preds = %148
  %359 = load ptr, ptr %12, align 8, !tbaa !5
  %360 = load ptr, ptr %13, align 8, !tbaa !5
  %361 = getelementptr inbounds i32, ptr %360, i64 1
  %362 = load ptr, ptr %15, align 8, !tbaa !5
  %363 = load ptr, ptr %14, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.doublecomplex, ptr %363, i64 1
  call void @zlarnv_(ptr noundef %359, ptr noundef %361, ptr noundef %362, ptr noundef %364)
  br label %365

365:                                              ; preds = %358, %357, %323, %270, %205, %176
  %366 = load ptr, ptr %9, align 8, !tbaa !5
  %367 = load i32, ptr %366, align 4, !tbaa !9
  %368 = icmp ne i32 %367, -6
  br i1 %368, label %369, label %481

369:                                              ; preds = %365
  %370 = load ptr, ptr %9, align 8, !tbaa !5
  %371 = load i32, ptr %370, align 4, !tbaa !9
  %372 = icmp ne i32 %371, 0
  br i1 %372, label %373, label %481

373:                                              ; preds = %369
  %374 = load ptr, ptr %9, align 8, !tbaa !5
  %375 = load i32, ptr %374, align 4, !tbaa !9
  %376 = icmp ne i32 %375, 6
  br i1 %376, label %377, label %481

377:                                              ; preds = %373
  %378 = load ptr, ptr %11, align 8, !tbaa !5
  %379 = load i32, ptr %378, align 4, !tbaa !9
  %380 = icmp eq i32 %379, 1
  br i1 %380, label %381, label %481

381:                                              ; preds = %377
  %382 = load ptr, ptr %15, align 8, !tbaa !5
  %383 = load i32, ptr %382, align 4, !tbaa !9
  store i32 %383, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %384

384:                                              ; preds = %477, %381
  %385 = load i32, ptr %24, align 4, !tbaa !9
  %386 = load i32, ptr %17, align 4, !tbaa !9
  %387 = icmp sle i32 %385, %386
  br i1 %387, label %388, label %480

388:                                              ; preds = %384
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %389 = load ptr, ptr %13, align 8, !tbaa !5
  %390 = getelementptr inbounds i32, ptr %389, i64 1
  %391 = call { double, double } @zlarnd_(ptr noundef @c__3, ptr noundef %390)
  %392 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %393 = extractvalue { double, double } %391, 0
  store double %393, ptr %392, align 8
  %394 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %395 = extractvalue { double, double } %391, 1
  store double %395, ptr %394, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %28, i64 16, i1 false), !tbaa.struct !22
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  %396 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  %397 = load double, ptr %396, align 8, !tbaa !13
  %398 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  store double %397, ptr %398, align 8, !tbaa !13
  %399 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  %400 = load double, ptr %399, align 8, !tbaa !15
  %401 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  store double %400, ptr %401, align 8, !tbaa !15
  %402 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %402, ptr %18, align 4, !tbaa !9
  %403 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %403, ptr %19, align 4, !tbaa !9
  %404 = call { double, double } @Cd(ptr noundef %26)
  %405 = extractvalue { double, double } %404, 0
  %406 = extractvalue { double, double } %404, 1
  %407 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %408 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  store double %405, ptr %407, align 8
  store double %406, ptr %408, align 8
  %409 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %410 = load double, ptr %409, align 8
  %411 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %412 = load double, ptr %411, align 8
  %413 = call double @cabs(double noundef %410, double noundef %412) #7
  store double %413, ptr %20, align 8, !tbaa !11
  %414 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  %415 = load double, ptr %414, align 8, !tbaa !13
  %416 = load double, ptr %20, align 8, !tbaa !11
  %417 = fdiv double %415, %416
  %418 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  store double %417, ptr %418, align 8, !tbaa !13
  %419 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  %420 = load double, ptr %419, align 8, !tbaa !15
  %421 = load double, ptr %20, align 8, !tbaa !11
  %422 = fdiv double %420, %421
  %423 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  store double %422, ptr %423, align 8, !tbaa !15
  %424 = load ptr, ptr %14, align 8, !tbaa !5
  %425 = load i32, ptr %19, align 4, !tbaa !9
  %426 = sext i32 %425 to i64
  %427 = getelementptr inbounds %struct.doublecomplex, ptr %424, i64 %426
  %428 = getelementptr inbounds %struct.doublecomplex, ptr %427, i32 0, i32 0
  %429 = load double, ptr %428, align 8, !tbaa !13
  %430 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  %431 = load double, ptr %430, align 8, !tbaa !13
  %432 = load ptr, ptr %14, align 8, !tbaa !5
  %433 = load i32, ptr %19, align 4, !tbaa !9
  %434 = sext i32 %433 to i64
  %435 = getelementptr inbounds %struct.doublecomplex, ptr %432, i64 %434
  %436 = getelementptr inbounds %struct.doublecomplex, ptr %435, i32 0, i32 1
  %437 = load double, ptr %436, align 8, !tbaa !15
  %438 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  %439 = load double, ptr %438, align 8, !tbaa !15
  %440 = fmul double %437, %439
  %441 = fneg double %440
  %442 = call double @llvm.fmuladd.f64(double %429, double %431, double %441)
  %443 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  store double %442, ptr %443, align 8, !tbaa !13
  %444 = load ptr, ptr %14, align 8, !tbaa !5
  %445 = load i32, ptr %19, align 4, !tbaa !9
  %446 = sext i32 %445 to i64
  %447 = getelementptr inbounds %struct.doublecomplex, ptr %444, i64 %446
  %448 = getelementptr inbounds %struct.doublecomplex, ptr %447, i32 0, i32 0
  %449 = load double, ptr %448, align 8, !tbaa !13
  %450 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 1
  %451 = load double, ptr %450, align 8, !tbaa !15
  %452 = load ptr, ptr %14, align 8, !tbaa !5
  %453 = load i32, ptr %19, align 4, !tbaa !9
  %454 = sext i32 %453 to i64
  %455 = getelementptr inbounds %struct.doublecomplex, ptr %452, i64 %454
  %456 = getelementptr inbounds %struct.doublecomplex, ptr %455, i32 0, i32 1
  %457 = load double, ptr %456, align 8, !tbaa !15
  %458 = getelementptr inbounds %struct.doublecomplex, ptr %22, i32 0, i32 0
  %459 = load double, ptr %458, align 8, !tbaa !13
  %460 = fmul double %457, %459
  %461 = call double @llvm.fmuladd.f64(double %449, double %451, double %460)
  %462 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  store double %461, ptr %462, align 8, !tbaa !15
  %463 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 0
  %464 = load double, ptr %463, align 8, !tbaa !13
  %465 = load ptr, ptr %14, align 8, !tbaa !5
  %466 = load i32, ptr %18, align 4, !tbaa !9
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds %struct.doublecomplex, ptr %465, i64 %467
  %469 = getelementptr inbounds %struct.doublecomplex, ptr %468, i32 0, i32 0
  store double %464, ptr %469, align 8, !tbaa !13
  %470 = getelementptr inbounds %struct.doublecomplex, ptr %21, i32 0, i32 1
  %471 = load double, ptr %470, align 8, !tbaa !15
  %472 = load ptr, ptr %14, align 8, !tbaa !5
  %473 = load i32, ptr %18, align 4, !tbaa !9
  %474 = sext i32 %473 to i64
  %475 = getelementptr inbounds %struct.doublecomplex, ptr %472, i64 %474
  %476 = getelementptr inbounds %struct.doublecomplex, ptr %475, i32 0, i32 1
  store double %471, ptr %476, align 8, !tbaa !15
  br label %477

477:                                              ; preds = %388
  %478 = load i32, ptr %24, align 4, !tbaa !9
  %479 = add nsw i32 %478, 1
  store i32 %479, ptr %24, align 4, !tbaa !9
  br label %384, !llvm.loop !23

480:                                              ; preds = %384
  br label %481

481:                                              ; preds = %480, %377, %373, %369, %365
  %482 = load ptr, ptr %9, align 8, !tbaa !5
  %483 = load i32, ptr %482, align 4, !tbaa !9
  %484 = icmp slt i32 %483, 0
  br i1 %484, label %485, label %560

485:                                              ; preds = %481
  %486 = load ptr, ptr %15, align 8, !tbaa !5
  %487 = load i32, ptr %486, align 4, !tbaa !9
  %488 = sdiv i32 %487, 2
  store i32 %488, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %489

489:                                              ; preds = %556, %485
  %490 = load i32, ptr %24, align 4, !tbaa !9
  %491 = load i32, ptr %17, align 4, !tbaa !9
  %492 = icmp sle i32 %490, %491
  br i1 %492, label %493, label %559

493:                                              ; preds = %489
  %494 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %494, ptr %18, align 4, !tbaa !9
  %495 = load ptr, ptr %14, align 8, !tbaa !5
  %496 = load i32, ptr %18, align 4, !tbaa !9
  %497 = sext i32 %496 to i64
  %498 = getelementptr inbounds %struct.doublecomplex, ptr %495, i64 %497
  %499 = getelementptr inbounds %struct.doublecomplex, ptr %498, i32 0, i32 0
  %500 = load double, ptr %499, align 8, !tbaa !13
  %501 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  store double %500, ptr %501, align 8, !tbaa !13
  %502 = load ptr, ptr %14, align 8, !tbaa !5
  %503 = load i32, ptr %18, align 4, !tbaa !9
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds %struct.doublecomplex, ptr %502, i64 %504
  %506 = getelementptr inbounds %struct.doublecomplex, ptr %505, i32 0, i32 1
  %507 = load double, ptr %506, align 8, !tbaa !15
  %508 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  store double %507, ptr %508, align 8, !tbaa !15
  %509 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %509, ptr %18, align 4, !tbaa !9
  %510 = load ptr, ptr %15, align 8, !tbaa !5
  %511 = load i32, ptr %510, align 4, !tbaa !9
  %512 = add nsw i32 %511, 1
  %513 = load i32, ptr %24, align 4, !tbaa !9
  %514 = sub nsw i32 %512, %513
  store i32 %514, ptr %19, align 4, !tbaa !9
  %515 = load ptr, ptr %14, align 8, !tbaa !5
  %516 = load i32, ptr %19, align 4, !tbaa !9
  %517 = sext i32 %516 to i64
  %518 = getelementptr inbounds %struct.doublecomplex, ptr %515, i64 %517
  %519 = getelementptr inbounds %struct.doublecomplex, ptr %518, i32 0, i32 0
  %520 = load double, ptr %519, align 8, !tbaa !13
  %521 = load ptr, ptr %14, align 8, !tbaa !5
  %522 = load i32, ptr %18, align 4, !tbaa !9
  %523 = sext i32 %522 to i64
  %524 = getelementptr inbounds %struct.doublecomplex, ptr %521, i64 %523
  %525 = getelementptr inbounds %struct.doublecomplex, ptr %524, i32 0, i32 0
  store double %520, ptr %525, align 8, !tbaa !13
  %526 = load ptr, ptr %14, align 8, !tbaa !5
  %527 = load i32, ptr %19, align 4, !tbaa !9
  %528 = sext i32 %527 to i64
  %529 = getelementptr inbounds %struct.doublecomplex, ptr %526, i64 %528
  %530 = getelementptr inbounds %struct.doublecomplex, ptr %529, i32 0, i32 1
  %531 = load double, ptr %530, align 8, !tbaa !15
  %532 = load ptr, ptr %14, align 8, !tbaa !5
  %533 = load i32, ptr %18, align 4, !tbaa !9
  %534 = sext i32 %533 to i64
  %535 = getelementptr inbounds %struct.doublecomplex, ptr %532, i64 %534
  %536 = getelementptr inbounds %struct.doublecomplex, ptr %535, i32 0, i32 1
  store double %531, ptr %536, align 8, !tbaa !15
  %537 = load ptr, ptr %15, align 8, !tbaa !5
  %538 = load i32, ptr %537, align 4, !tbaa !9
  %539 = add nsw i32 %538, 1
  %540 = load i32, ptr %24, align 4, !tbaa !9
  %541 = sub nsw i32 %539, %540
  store i32 %541, ptr %18, align 4, !tbaa !9
  %542 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 0
  %543 = load double, ptr %542, align 8, !tbaa !13
  %544 = load ptr, ptr %14, align 8, !tbaa !5
  %545 = load i32, ptr %18, align 4, !tbaa !9
  %546 = sext i32 %545 to i64
  %547 = getelementptr inbounds %struct.doublecomplex, ptr %544, i64 %546
  %548 = getelementptr inbounds %struct.doublecomplex, ptr %547, i32 0, i32 0
  store double %543, ptr %548, align 8, !tbaa !13
  %549 = getelementptr inbounds %struct.doublecomplex, ptr %26, i32 0, i32 1
  %550 = load double, ptr %549, align 8, !tbaa !15
  %551 = load ptr, ptr %14, align 8, !tbaa !5
  %552 = load i32, ptr %18, align 4, !tbaa !9
  %553 = sext i32 %552 to i64
  %554 = getelementptr inbounds %struct.doublecomplex, ptr %551, i64 %553
  %555 = getelementptr inbounds %struct.doublecomplex, ptr %554, i32 0, i32 1
  store double %550, ptr %555, align 8, !tbaa !15
  br label %556

556:                                              ; preds = %493
  %557 = load i32, ptr %24, align 4, !tbaa !9
  %558 = add nsw i32 %557, 1
  store i32 %558, ptr %24, align 4, !tbaa !9
  br label %489, !llvm.loop !24

559:                                              ; preds = %489
  br label %560

560:                                              ; preds = %559, %481
  br label %561

561:                                              ; preds = %560, %126
  store i32 1, ptr %27, align 4
  br label %562

562:                                              ; preds = %561, %121, %38
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  ret void
}

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

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3

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

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

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

; Function Attrs: nounwind
declare double @exp(double noundef) #3

declare double @dlaran_(ptr noundef) #2

declare void @zlarnv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare { double, double } @zlarnd_(ptr noundef, ptr noundef) #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) #5

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

; Function Attrs: nounwind
declare double @cabs(double noundef, double noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) #6

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { inlinehint 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 #7 = { nounwind }

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

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

@.str = external hidden unnamed_addr constant [7 x i8], align 1
@c__3 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @zlatm1_(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef writeonly %7) local_unnamed_addr #0 {
  %9 = alloca i32, align 4
  %10 = alloca %struct.doublecomplex, align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  %11 = getelementptr inbounds i8, ptr %5, i64 -16
  store i32 0, ptr %7, align 4, !tbaa !5
  %12 = load i32, ptr %6, align 4, !tbaa !5
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %.loopexit, label %14

14:                                               ; preds = %8
  %15 = load i32, ptr %0, align 4, !tbaa !5
  %16 = add i32 %15, -7
  %or.cond = icmp ult i32 %16, -13
  br i1 %or.cond, label %.thread, label %17

17:                                               ; preds = %14
  switch i32 %15, label %18 [
    i32 6, label %25
    i32 -6, label %25
    i32 0, label %28
  ]

18:                                               ; preds = %17
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %switch = icmp ult i32 %19, 2
  br i1 %switch, label %20, label %.thread

20:                                               ; preds = %18
  switch i32 %15, label %21 [
    i32 6, label %25
    i32 -6, label %25
    i32 0, label %28
  ]

21:                                               ; preds = %20
  %22 = load double, ptr %1, align 8, !tbaa !9
  %23 = fcmp olt double %22, 1.000000e+00
  br i1 %23, label %.thread, label %24

24:                                               ; preds = %21
  switch i32 %15, label %28 [
    i32 6, label %25
    i32 -6, label %25
  ]

25:                                               ; preds = %17, %17, %20, %20, %24, %24
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = add i32 %26, -5
  %or.cond194 = icmp ult i32 %27, -4
  br i1 %or.cond194, label %.thread, label %28

28:                                               ; preds = %17, %20, %25, %24
  %29 = icmp slt i32 %12, 0
  br i1 %29, label %.thread, label %31

.thread:                                          ; preds = %28, %25, %21, %18, %14
  %.sink = phi i32 [ -1, %14 ], [ -2, %18 ], [ -3, %21 ], [ -4, %25 ], [ -7, %28 ]
  %.neg = phi i32 [ 1, %14 ], [ 2, %18 ], [ 3, %21 ], [ 4, %25 ], [ 7, %28 ]
  store i32 %.sink, ptr %7, align 4, !tbaa !5
  store i32 %.neg, ptr %9, align 4, !tbaa !5
  %30 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %9, i32 noundef 6) #8
  br label %.loopexit

31:                                               ; preds = %28
  %.not183 = icmp eq i32 %15, 0
  br i1 %.not183, label %.loopexit, label %32

32:                                               ; preds = %31
  %33 = tail call i32 @llvm.abs.i32(i32 %15, i1 true)
  switch i32 %33, label %.lr.ph213.preheader [
    i32 6, label %119
    i32 2, label %.lr.ph209.preheader
    i32 3, label %70
    i32 4, label %84
    i32 5, label %108
  ]

.lr.ph213.preheader:                              ; preds = %32
  %34 = add nuw i32 %12, 1
  %wide.trip.count246 = zext i32 %34 to i64
  %35 = zext nneg i32 %12 to i64
  %min.iters.check284 = icmp eq i32 %12, 1
  br i1 %min.iters.check284, label %.lr.ph213.preheader298, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph213.preheader
  %36 = shl nuw nsw i64 %wide.trip.count246, 4
  %37 = getelementptr i8, ptr %5, i64 %36
  %scevgep = getelementptr i8, ptr %37, i64 -16
  %scevgep281 = getelementptr i8, ptr %1, i64 8
  %bound0 = icmp ugt ptr %scevgep281, %5
  %bound1 = icmp ugt ptr %scevgep, %1
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph213.preheader298, label %vector.ph285

vector.ph285:                                     ; preds = %vector.memcheck
  %n.vec287 = and i64 %35, 2147483646
  %ind.end288 = or i64 %35, 1
  br label %vector.body290

vector.body290:                                   ; preds = %vector.body290, %vector.ph285
  %index291 = phi i64 [ 0, %vector.ph285 ], [ %index.next296, %vector.body290 ]
  %38 = load double, ptr %1, align 8, !tbaa !9, !alias.scope !11
  %broadcast.splatinsert293 = insertelement <2 x double> poison, double %38, i64 0
  %39 = fdiv <2 x double> <double 1.000000e+00, double poison>, %broadcast.splatinsert293
  %40 = shufflevector <2 x double> %39, <2 x double> poison, <2 x i32> zeroinitializer
  %41 = getelementptr %struct.doublecomplex, ptr %5, i64 %index291
  %interleaved.vec295 = shufflevector <2 x double> %40, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec295, ptr %41, align 8, !tbaa !9
  %index.next296 = add nuw i64 %index291, 2
  %42 = icmp eq i64 %index.next296, %n.vec287
  br i1 %42, label %middle.block282, label %vector.body290, !llvm.loop !14

middle.block282:                                  ; preds = %vector.body290
  %cmp.n297 = icmp eq i64 %n.vec287, %35
  br i1 %cmp.n297, label %._crit_edge214, label %.lr.ph213.preheader298

.lr.ph213.preheader298:                           ; preds = %middle.block282, %vector.memcheck, %.lr.ph213.preheader
  %indvars.iv243.ph = phi i64 [ 1, %vector.memcheck ], [ 1, %.lr.ph213.preheader ], [ %ind.end288, %middle.block282 ]
  %43 = zext nneg i32 %12 to i64
  %44 = and i32 %12, 1
  %lcmp.mod.not = icmp eq i32 %44, 0
  br i1 %lcmp.mod.not, label %.lr.ph213.prol.loopexit, label %.lr.ph213.prol

.lr.ph213.prol:                                   ; preds = %.lr.ph213.preheader298
  %45 = load double, ptr %1, align 8, !tbaa !9
  %46 = fdiv double 1.000000e+00, %45
  %47 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv243.ph
  store double %46, ptr %47, align 8, !tbaa !18
  %48 = getelementptr inbounds i8, ptr %47, i64 8
  store double 0.000000e+00, ptr %48, align 8, !tbaa !20
  %indvars.iv.next244.prol = add nuw nsw i64 %indvars.iv243.ph, 1
  br label %.lr.ph213.prol.loopexit

.lr.ph213.prol.loopexit:                          ; preds = %.lr.ph213.prol, %.lr.ph213.preheader298
  %indvars.iv243.unr = phi i64 [ %indvars.iv243.ph, %.lr.ph213.preheader298 ], [ %indvars.iv.next244.prol, %.lr.ph213.prol ]
  %49 = icmp eq i64 %indvars.iv243.ph, %43
  br i1 %49, label %._crit_edge214, label %.lr.ph213

.lr.ph213:                                        ; preds = %.lr.ph213.prol.loopexit, %.lr.ph213
  %indvars.iv243 = phi i64 [ %indvars.iv.next244.1, %.lr.ph213 ], [ %indvars.iv243.unr, %.lr.ph213.prol.loopexit ]
  %50 = load double, ptr %1, align 8, !tbaa !9
  %51 = fdiv double 1.000000e+00, %50
  %52 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv243
  store double %51, ptr %52, align 8, !tbaa !18
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  store double 0.000000e+00, ptr %53, align 8, !tbaa !20
  %54 = load double, ptr %1, align 8, !tbaa !9
  %55 = fdiv double 1.000000e+00, %54
  %56 = getelementptr %struct.doublecomplex, ptr %5, i64 %indvars.iv243
  store double %55, ptr %56, align 8, !tbaa !18
  %57 = getelementptr inbounds i8, ptr %56, i64 8
  store double 0.000000e+00, ptr %57, align 8, !tbaa !20
  %indvars.iv.next244.1 = add nuw nsw i64 %indvars.iv243, 2
  %exitcond247.not.1 = icmp eq i64 %indvars.iv.next244.1, %wide.trip.count246
  br i1 %exitcond247.not.1, label %._crit_edge214, label %.lr.ph213, !llvm.loop !21

._crit_edge214:                                   ; preds = %.lr.ph213.prol.loopexit, %.lr.ph213, %middle.block282
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %5, align 8, !tbaa !9
  br label %.loopexit198

.lr.ph209.preheader:                              ; preds = %32
  %58 = add nuw i32 %12, 1
  %wide.trip.count241 = zext i32 %58 to i64
  %59 = zext nneg i32 %12 to i64
  %min.iters.check270 = icmp ult i32 %12, 4
  br i1 %min.iters.check270, label %.lr.ph209.preheader299, label %vector.ph271

vector.ph271:                                     ; preds = %.lr.ph209.preheader
  %n.vec273 = and i64 %59, 2147483644
  %ind.end274 = or disjoint i64 %n.vec273, 1
  br label %vector.body276

vector.body276:                                   ; preds = %vector.body276, %vector.ph271
  %index277 = phi i64 [ 0, %vector.ph271 ], [ %index.next279, %vector.body276 ]
  %60 = or disjoint i64 %index277, 3
  %61 = getelementptr %struct.doublecomplex, ptr %5, i64 %index277
  %62 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %60
  store <4 x double> <double 1.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00>, ptr %61, align 8, !tbaa !9
  store <4 x double> <double 1.000000e+00, double 0.000000e+00, double 1.000000e+00, double 0.000000e+00>, ptr %62, align 8, !tbaa !9
  %index.next279 = add nuw i64 %index277, 4
  %63 = icmp eq i64 %index.next279, %n.vec273
  br i1 %63, label %middle.block268, label %vector.body276, !llvm.loop !22

middle.block268:                                  ; preds = %vector.body276
  %cmp.n280 = icmp eq i64 %n.vec273, %59
  br i1 %cmp.n280, label %._crit_edge, label %.lr.ph209.preheader299

.lr.ph209.preheader299:                           ; preds = %middle.block268, %.lr.ph209.preheader
  %indvars.iv238.ph = phi i64 [ 1, %.lr.ph209.preheader ], [ %ind.end274, %middle.block268 ]
  br label %.lr.ph209

.lr.ph209:                                        ; preds = %.lr.ph209.preheader299, %.lr.ph209
  %indvars.iv238 = phi i64 [ %indvars.iv.next239, %.lr.ph209 ], [ %indvars.iv238.ph, %.lr.ph209.preheader299 ]
  %64 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv238
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %64, align 8, !tbaa !9
  %indvars.iv.next239 = add nuw nsw i64 %indvars.iv238, 1
  %exitcond242.not = icmp eq i64 %indvars.iv.next239, %wide.trip.count241
  br i1 %exitcond242.not, label %._crit_edge, label %.lr.ph209, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph209, %middle.block268
  %65 = load double, ptr %1, align 8, !tbaa !9
  %66 = fdiv double 1.000000e+00, %65
  %67 = zext nneg i32 %12 to i64
  %68 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %67
  store double %66, ptr %68, align 8, !tbaa !18
  %69 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %67, i32 1
  store double 0.000000e+00, ptr %69, align 8, !tbaa !20
  br label %.loopexit198

70:                                               ; preds = %32
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %5, align 8, !tbaa !9
  %.not259 = icmp eq i32 %12, 1
  br i1 %.not259, label %.loopexit198, label %71

71:                                               ; preds = %70
  %72 = add nsw i32 %12, -1
  %73 = uitofp nneg i32 %72 to double
  %74 = fdiv double -1.000000e+00, %73
  %75 = load double, ptr %1, align 8, !tbaa !9
  %76 = tail call double @pow(double noundef %75, double noundef %74) #8
  %77 = load i32, ptr %6, align 4, !tbaa !5
  %.not186204 = icmp slt i32 %77, 2
  br i1 %.not186204, label %.loopexit198, label %.lr.ph206.preheader

.lr.ph206.preheader:                              ; preds = %71
  %78 = add nuw i32 %77, 1
  %wide.trip.count236 = zext i32 %78 to i64
  br label %.lr.ph206

.lr.ph206:                                        ; preds = %.lr.ph206.preheader, %.lr.ph206
  %indvars.iv233 = phi i64 [ 2, %.lr.ph206.preheader ], [ %indvars.iv.next234, %.lr.ph206 ]
  %79 = trunc i64 %indvars.iv233 to i32
  %80 = add i32 %79, -1
  %81 = tail call double @dpow_ui(double noundef %76, i32 noundef %80)
  %82 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv233
  store double %81, ptr %82, align 8, !tbaa !18
  %83 = getelementptr inbounds i8, ptr %82, i64 8
  store double 0.000000e+00, ptr %83, align 8, !tbaa !20
  %indvars.iv.next234 = add nuw nsw i64 %indvars.iv233, 1
  %exitcond237.not = icmp eq i64 %indvars.iv.next234, %wide.trip.count236
  br i1 %exitcond237.not, label %.loopexit198, label %.lr.ph206, !llvm.loop !24

84:                                               ; preds = %32
  store <2 x double> <double 1.000000e+00, double 0.000000e+00>, ptr %5, align 8, !tbaa !9
  %.not = icmp eq i32 %12, 1
  br i1 %.not, label %.loopexit198, label %85

85:                                               ; preds = %84
  %86 = load double, ptr %1, align 8, !tbaa !9
  %87 = fdiv double 1.000000e+00, %86
  %88 = fsub double 1.000000e+00, %87
  %89 = add nsw i32 %12, -1
  %90 = uitofp nneg i32 %89 to double
  %91 = fdiv double %88, %90
  %92 = add nuw i32 %12, 1
  %wide.trip.count231 = zext i32 %92 to i64
  %93 = add nsw i64 %wide.trip.count231, -2
  %min.iters.check = icmp ult i64 %93, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %85
  %n.vec = and i64 %93, -4
  %ind.end = or disjoint i64 %n.vec, 2
  %broadcast.splatinsert = insertelement <2 x i32> poison, i32 %12, i64 0
  %broadcast.splat = shufflevector <2 x i32> %broadcast.splatinsert, <2 x i32> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert263 = insertelement <2 x double> poison, double %91, i64 0
  %broadcast.splat264 = shufflevector <2 x double> %broadcast.splatinsert263, <2 x double> poison, <2 x i32> zeroinitializer
  %broadcast.splatinsert265 = insertelement <2 x double> poison, double %87, i64 0
  %broadcast.splat266 = shufflevector <2 x double> %broadcast.splatinsert265, <2 x double> poison, <2 x i32> zeroinitializer
  %invariant.gep = getelementptr i8, ptr %11, i64 64
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i32> [ <i32 2, i32 3>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <2 x i32> %vec.ind, <i32 2, i32 2>
  %offset.idx = or disjoint i64 %index, 2
  %94 = sub <2 x i32> %broadcast.splat, %vec.ind
  %95 = sub <2 x i32> %broadcast.splat, %step.add
  %96 = sitofp <2 x i32> %94 to <2 x double>
  %97 = sitofp <2 x i32> %95 to <2 x double>
  %98 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %96, <2 x double> %broadcast.splat264, <2 x double> %broadcast.splat266)
  %99 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %97, <2 x double> %broadcast.splat264, <2 x double> %broadcast.splat266)
  %100 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %offset.idx
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %index
  %interleaved.vec = shufflevector <2 x double> %98, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec, ptr %100, align 8, !tbaa !9
  %interleaved.vec267 = shufflevector <2 x double> %99, <2 x double> zeroinitializer, <4 x i32> <i32 0, i32 2, i32 1, i32 3>
  store <4 x double> %interleaved.vec267, ptr %gep, align 8, !tbaa !9
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i32> %vec.ind, <i32 4, i32 4>
  %101 = icmp eq i64 %index.next, %n.vec
  br i1 %101, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %93, %n.vec
  br i1 %cmp.n, label %.loopexit198, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %85
  %indvars.iv228.ph = phi i64 [ 2, %85 ], [ %ind.end, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv228 = phi i64 [ %indvars.iv.next229, %scalar.ph ], [ %indvars.iv228.ph, %scalar.ph.preheader ]
  %102 = trunc i64 %indvars.iv228 to i32
  %103 = sub i32 %12, %102
  %104 = sitofp i32 %103 to double
  %105 = tail call double @llvm.fmuladd.f64(double %104, double %91, double %87)
  %106 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv228
  store double %105, ptr %106, align 8, !tbaa !18
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  store double 0.000000e+00, ptr %107, align 8, !tbaa !20
  %indvars.iv.next229 = add nuw nsw i64 %indvars.iv228, 1
  %exitcond232.not = icmp eq i64 %indvars.iv.next229, %wide.trip.count231
  br i1 %exitcond232.not, label %.loopexit198, label %scalar.ph, !llvm.loop !26

108:                                              ; preds = %32
  %109 = load double, ptr %1, align 8, !tbaa !9
  %110 = fdiv double 1.000000e+00, %109
  %111 = tail call double @log(double noundef %110) #8
  %112 = load i32, ptr %6, align 4, !tbaa !5
  %.not184201 = icmp slt i32 %112, 1
  br i1 %.not184201, label %.loopexit198, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %108
  %113 = add nuw i32 %112, 1
  %wide.trip.count = zext i32 %113 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %114 = tail call double @dlaran_(ptr noundef %4) #8
  %115 = fmul double %111, %114
  %116 = tail call double @exp(double noundef %115) #8
  %117 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv
  store double %116, ptr %117, align 8, !tbaa !18
  %118 = getelementptr inbounds i8, ptr %117, i64 8
  store double 0.000000e+00, ptr %118, align 8, !tbaa !20
  %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 %.loopexit198, label %.lr.ph, !llvm.loop !27

119:                                              ; preds = %32
  tail call void @zlarnv_(ptr noundef %3, ptr noundef %4, ptr noundef nonnull %6, ptr noundef %5) #8
  br label %.loopexit198

.loopexit198:                                     ; preds = %.lr.ph, %scalar.ph, %.lr.ph206, %middle.block, %108, %71, %84, %70, %119, %._crit_edge, %._crit_edge214
  %120 = load i32, ptr %0, align 4, !tbaa !5
  switch i32 %120, label %121 [
    i32 -6, label %thread-pre-split196
    i32 0, label %thread-pre-split196
    i32 6, label %thread-pre-split196
  ]

121:                                              ; preds = %.loopexit198
  %122 = load i32, ptr %2, align 4, !tbaa !5
  %123 = icmp eq i32 %122, 1
  br i1 %123, label %124, label %thread-pre-split196

124:                                              ; preds = %121
  %125 = load i32, ptr %6, align 4, !tbaa !5
  %.not192215 = icmp slt i32 %125, 1
  br i1 %.not192215, label %thread-pre-split196, label %.lr.ph218

.lr.ph218:                                        ; preds = %124
  %126 = getelementptr inbounds i8, ptr %10, i64 8
  %127 = zext nneg i32 %125 to i64
  br label %128

128:                                              ; preds = %.lr.ph218, %128
  %indvars.iv248 = phi i64 [ 1, %.lr.ph218 ], [ %indvars.iv.next249, %128 ]
  %129 = call { double, double } @zlarnd_(ptr noundef nonnull @c__3, ptr noundef %4) #8
  %130 = extractvalue { double, double } %129, 0
  %131 = extractvalue { double, double } %129, 1
  store double %130, ptr %10, align 16, !tbaa !18
  store double %131, ptr %126, align 8, !tbaa !20
  %132 = call { double, double } @Cd(ptr noundef nonnull %10)
  %133 = extractvalue { double, double } %132, 0
  %134 = extractvalue { double, double } %132, 1
  %135 = call double @cabs(double noundef %133, double noundef %134) #8
  %136 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv248
  %137 = load double, ptr %136, align 8, !tbaa !18
  %138 = getelementptr inbounds i8, ptr %136, i64 8
  %139 = load double, ptr %138, align 8, !tbaa !20
  %140 = fneg double %139
  %141 = load <2 x double>, ptr %10, align 16, !tbaa !9
  %142 = insertelement <2 x double> poison, double %135, i64 0
  %143 = shufflevector <2 x double> %142, <2 x double> poison, <2 x i32> zeroinitializer
  %144 = fdiv <2 x double> %141, %143
  %145 = insertelement <2 x double> poison, double %139, i64 0
  %146 = insertelement <2 x double> %145, double %140, i64 1
  %147 = fmul <2 x double> %144, %146
  %148 = shufflevector <2 x double> %147, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %149 = insertelement <2 x double> poison, double %137, i64 0
  %150 = shufflevector <2 x double> %149, <2 x double> poison, <2 x i32> zeroinitializer
  %151 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %150, <2 x double> %144, <2 x double> %148)
  store <2 x double> %151, ptr %136, align 8, !tbaa !9
  %indvars.iv.next249 = add nuw nsw i64 %indvars.iv248, 1
  %.not192.not = icmp ult i64 %indvars.iv248, %127
  br i1 %.not192.not, label %128, label %thread-pre-split196.loopexit, !llvm.loop !28

thread-pre-split196.loopexit:                     ; preds = %128
  %.pr197.pre = load i32, ptr %0, align 4, !tbaa !5
  br label %thread-pre-split196

thread-pre-split196:                              ; preds = %124, %thread-pre-split196.loopexit, %.loopexit198, %.loopexit198, %.loopexit198, %121
  %152 = phi i32 [ %120, %.loopexit198 ], [ %120, %.loopexit198 ], [ %120, %.loopexit198 ], [ %120, %121 ], [ %.pr197.pre, %thread-pre-split196.loopexit ], [ %120, %124 ]
  %153 = icmp slt i32 %152, 0
  br i1 %153, label %154, label %.loopexit

154:                                              ; preds = %thread-pre-split196
  %155 = load i32, ptr %6, align 4, !tbaa !5
  %.not193219 = icmp slt i32 %155, 2
  br i1 %.not193219, label %.loopexit, label %.lr.ph222

.lr.ph222:                                        ; preds = %154
  %156 = add nuw nsw i32 %155, 1
  %157 = zext nneg i32 %156 to i64
  %158 = lshr i32 %155, 1
  %159 = zext nneg i32 %158 to i64
  %xtraiter302 = and i64 %159, 1
  %160 = icmp eq i32 %158, 1
  br i1 %160, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph222.new

.lr.ph222.new:                                    ; preds = %.lr.ph222
  %unroll_iter = and i64 %159, 1073741822
  %invariant.gep304 = getelementptr %struct.doublecomplex, ptr %11, i64 %157
  br label %161

161:                                              ; preds = %161, %.lr.ph222.new
  %indvars.iv251 = phi i64 [ 1, %.lr.ph222.new ], [ %indvars.iv.next252.1, %161 ]
  %niter = phi i64 [ 0, %.lr.ph222.new ], [ %niter.next.1, %161 ]
  %162 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv251
  %163 = sub nsw i64 %157, %indvars.iv251
  %164 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %163
  %165 = load <2 x double>, ptr %162, align 8, !tbaa !9
  %166 = load <2 x double>, ptr %164, align 8, !tbaa !9
  store <2 x double> %166, ptr %162, align 8, !tbaa !9
  store <2 x double> %165, ptr %164, align 8, !tbaa !9
  %indvars.iv.next252.neg = xor i64 %indvars.iv251, -1
  %167 = getelementptr %struct.doublecomplex, ptr %5, i64 %indvars.iv251
  %gep305 = getelementptr %struct.doublecomplex, ptr %invariant.gep304, i64 %indvars.iv.next252.neg
  %168 = load <2 x double>, ptr %167, align 8, !tbaa !9
  %169 = load <2 x double>, ptr %gep305, align 8, !tbaa !9
  store <2 x double> %169, ptr %167, align 8, !tbaa !9
  store <2 x double> %168, ptr %gep305, align 8, !tbaa !9
  %indvars.iv.next252.1 = add nuw nsw i64 %indvars.iv251, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %161, !llvm.loop !29

.loopexit.loopexit.unr-lcssa:                     ; preds = %161, %.lr.ph222
  %indvars.iv251.unr = phi i64 [ 1, %.lr.ph222 ], [ %indvars.iv.next252.1, %161 ]
  %lcmp.mod303.not = icmp eq i64 %xtraiter302, 0
  br i1 %lcmp.mod303.not, label %.loopexit, label %.loopexit.loopexit.epilog-lcssa

.loopexit.loopexit.epilog-lcssa:                  ; preds = %.loopexit.loopexit.unr-lcssa
  %170 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %indvars.iv251.unr
  %171 = sub nsw i64 %157, %indvars.iv251.unr
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %11, i64 %171
  %173 = load <2 x double>, ptr %170, align 8, !tbaa !9
  %174 = load <2 x double>, ptr %172, align 8, !tbaa !9
  store <2 x double> %174, ptr %170, align 8, !tbaa !9
  store <2 x double> %173, ptr %172, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit.epilog-lcssa, %.loopexit.loopexit.unr-lcssa, %154, %31, %thread-pre-split196, %8, %.thread
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  ret void
}

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

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #3

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

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

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

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

declare double @dlaran_(ptr noundef) local_unnamed_addr #2

declare void @zlarnv_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare { double, double } @zlarnd_(ptr noundef, ptr noundef) local_unnamed_addr #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: nofree nounwind
declare double @cabs(double noundef, double noundef) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden { double, double } @Cd(ptr noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.abs.i32(i32, i1 immarg) #7

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint 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 #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }

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

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


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