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

; 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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@c_b1 = external hidden global %struct.doublecomplex, align 8
@c_b2 = external hidden global %struct.doublecomplex, align 8
@c__3 = external hidden global i32, align 4
@c__1 = external hidden global i32, align 4
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @zlaror_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %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 ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca %struct.doublecomplex, align 8
  %25 = alloca %struct.doublecomplex, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %struct.doublecomplex, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca %struct.doublecomplex, align 8
  %38 = alloca i32, align 4
  %39 = alloca %struct.doublecomplex, align 8
  %40 = alloca { double, double }, align 8
  %41 = alloca %struct.doublecomplex, align 8
  %42 = alloca { double, double }, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #6
  %43 = load ptr, ptr %15, align 8, !tbaa !5
  %44 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %44, ptr %19, align 4, !tbaa !9
  %45 = load i32, ptr %19, align 4, !tbaa !9
  %46 = mul nsw i32 %45, 1
  %47 = add nsw i32 1, %46
  store i32 %47, ptr %20, align 4, !tbaa !9
  %48 = load i32, ptr %20, align 4, !tbaa !9
  %49 = load ptr, ptr %14, align 8, !tbaa !5
  %50 = sext i32 %48 to i64
  %51 = sub i64 0, %50
  %52 = getelementptr inbounds %struct.doublecomplex, ptr %49, i64 %51
  store ptr %52, ptr %14, align 8, !tbaa !5
  %53 = load ptr, ptr %16, align 8, !tbaa !5
  %54 = getelementptr inbounds i32, ptr %53, i32 -1
  store ptr %54, ptr %16, align 8, !tbaa !5
  %55 = load ptr, ptr %17, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.doublecomplex, ptr %55, i32 -1
  store ptr %56, ptr %17, align 8, !tbaa !5
  %57 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 0, ptr %57, align 4, !tbaa !9
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = icmp eq i32 %59, 0
  br i1 %60, label %65, label %61

61:                                               ; preds = %9
  %62 = load ptr, ptr %12, align 8, !tbaa !5
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = icmp eq i32 %63, 0
  br i1 %64, label %65, label %66

65:                                               ; preds = %61, %9
  store i32 1, ptr %38, align 4
  br label %681

66:                                               ; preds = %61
  store i32 0, ptr %33, align 4, !tbaa !9
  %67 = load ptr, ptr %10, align 8, !tbaa !5
  %68 = call i32 @lsame_(ptr noundef %67, ptr noundef @.str)
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %66
  store i32 1, ptr %33, align 4, !tbaa !9
  br label %89

71:                                               ; preds = %66
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  %73 = call i32 @lsame_(ptr noundef %72, ptr noundef @.str.1)
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %76

75:                                               ; preds = %71
  store i32 2, ptr %33, align 4, !tbaa !9
  br label %88

76:                                               ; preds = %71
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = call i32 @lsame_(ptr noundef %77, ptr noundef @.str.2)
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %81

80:                                               ; preds = %76
  store i32 3, ptr %33, align 4, !tbaa !9
  br label %87

81:                                               ; preds = %76
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = call i32 @lsame_(ptr noundef %82, ptr noundef @.str.3)
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %81
  store i32 4, ptr %33, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %85, %81
  br label %87

87:                                               ; preds = %86, %80
  br label %88

88:                                               ; preds = %87, %75
  br label %89

89:                                               ; preds = %88, %70
  %90 = load i32, ptr %33, align 4, !tbaa !9
  %91 = icmp eq i32 %90, 0
  br i1 %91, label %92, label %94

92:                                               ; preds = %89
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -1, ptr %93, align 4, !tbaa !9
  br label %126

94:                                               ; preds = %89
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = icmp slt i32 %96, 0
  br i1 %97, label %98, label %100

98:                                               ; preds = %94
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -3, ptr %99, align 4, !tbaa !9
  br label %125

100:                                              ; preds = %94
  %101 = load ptr, ptr %13, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = icmp slt i32 %102, 0
  br i1 %103, label %113, label %104

104:                                              ; preds = %100
  %105 = load i32, ptr %33, align 4, !tbaa !9
  %106 = icmp eq i32 %105, 3
  br i1 %106, label %107, label %115

107:                                              ; preds = %104
  %108 = load ptr, ptr %13, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = icmp ne i32 %109, %111
  br i1 %112, label %113, label %115

113:                                              ; preds = %107, %100
  %114 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -4, ptr %114, align 4, !tbaa !9
  br label %124

115:                                              ; preds = %107, %104
  %116 = load ptr, ptr %15, align 8, !tbaa !5
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = load ptr, ptr %12, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = icmp slt i32 %117, %119
  br i1 %120, label %121, label %123

121:                                              ; preds = %115
  %122 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -6, ptr %122, align 4, !tbaa !9
  br label %123

123:                                              ; preds = %121, %115
  br label %124

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

125:                                              ; preds = %124, %98
  br label %126

126:                                              ; preds = %125, %92
  %127 = load ptr, ptr %18, 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 %135

130:                                              ; preds = %126
  %131 = load ptr, ptr %18, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = sub nsw i32 0, %132
  store i32 %133, ptr %21, align 4, !tbaa !9
  %134 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %21, i32 noundef 6)
  store i32 1, ptr %38, align 4
  br label %681

135:                                              ; preds = %126
  %136 = load i32, ptr %33, align 4, !tbaa !9
  %137 = icmp eq i32 %136, 1
  br i1 %137, label %138, label %141

138:                                              ; preds = %135
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  store i32 %140, ptr %34, align 4, !tbaa !9
  br label %144

141:                                              ; preds = %135
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = load i32, ptr %142, align 4, !tbaa !9
  store i32 %143, ptr %34, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %141, %138
  %145 = load ptr, ptr %11, align 8, !tbaa !5
  %146 = call i32 @lsame_(ptr noundef %145, ptr noundef @.str.5)
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %156

148:                                              ; preds = %144
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = load i32, ptr %20, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %struct.doublecomplex, ptr %151, i64 %153
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  call void @zlaset_(ptr noundef @.str.6, ptr noundef %149, ptr noundef %150, ptr noundef @c_b1, ptr noundef @c_b2, ptr noundef %154, ptr noundef %155)
  br label %156

156:                                              ; preds = %148, %144
  %157 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %157, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %30, align 4, !tbaa !9
  br label %158

158:                                              ; preds = %174, %156
  %159 = load i32, ptr %30, align 4, !tbaa !9
  %160 = load i32, ptr %21, align 4, !tbaa !9
  %161 = icmp sle i32 %159, %160
  br i1 %161, label %162, label %177

162:                                              ; preds = %158
  %163 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %163, ptr %22, align 4, !tbaa !9
  %164 = load ptr, ptr %17, align 8, !tbaa !5
  %165 = load i32, ptr %22, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds %struct.doublecomplex, ptr %164, i64 %166
  %168 = getelementptr inbounds %struct.doublecomplex, ptr %167, i32 0, i32 0
  store double 0.000000e+00, ptr %168, align 8, !tbaa !11
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = load i32, ptr %22, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %169, i64 %171
  %173 = getelementptr inbounds %struct.doublecomplex, ptr %172, i32 0, i32 1
  store double 0.000000e+00, ptr %173, align 8, !tbaa !14
  br label %174

174:                                              ; preds = %162
  %175 = load i32, ptr %30, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %30, align 4, !tbaa !9
  br label %158, !llvm.loop !15

177:                                              ; preds = %158
  %178 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %178, ptr %21, align 4, !tbaa !9
  store i32 2, ptr %32, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %495, %177
  %180 = load i32, ptr %32, align 4, !tbaa !9
  %181 = load i32, ptr %21, align 4, !tbaa !9
  %182 = icmp sle i32 %180, %181
  br i1 %182, label %183, label %498

183:                                              ; preds = %179
  %184 = load i32, ptr %34, align 4, !tbaa !9
  %185 = load i32, ptr %32, align 4, !tbaa !9
  %186 = sub nsw i32 %184, %185
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %26, align 4, !tbaa !9
  %188 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %188, ptr %22, align 4, !tbaa !9
  %189 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %189, ptr %30, align 4, !tbaa !9
  br label %190

190:                                              ; preds = %217, %183
  %191 = load i32, ptr %30, align 4, !tbaa !9
  %192 = load i32, ptr %22, align 4, !tbaa !9
  %193 = icmp sle i32 %191, %192
  br i1 %193, label %194, label %220

194:                                              ; preds = %190
  %195 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %195, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %39) #6
  %196 = load ptr, ptr %16, align 8, !tbaa !5
  %197 = getelementptr inbounds i32, ptr %196, i64 1
  %198 = call { double, double } @zlarnd_(ptr noundef @c__3, ptr noundef %197)
  %199 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %200 = extractvalue { double, double } %198, 0
  store double %200, ptr %199, align 8
  %201 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %202 = extractvalue { double, double } %198, 1
  store double %202, ptr %201, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %39, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %39) #6
  %203 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %204 = load double, ptr %203, align 8, !tbaa !11
  %205 = load ptr, ptr %17, align 8, !tbaa !5
  %206 = load i32, ptr %23, align 4, !tbaa !9
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds %struct.doublecomplex, ptr %205, i64 %207
  %209 = getelementptr inbounds %struct.doublecomplex, ptr %208, i32 0, i32 0
  store double %204, ptr %209, align 8, !tbaa !11
  %210 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %211 = load double, ptr %210, align 8, !tbaa !14
  %212 = load ptr, ptr %17, align 8, !tbaa !5
  %213 = load i32, ptr %23, 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 1
  store double %211, ptr %216, align 8, !tbaa !14
  br label %217

217:                                              ; preds = %194
  %218 = load i32, ptr %30, align 4, !tbaa !9
  %219 = add nsw i32 %218, 1
  store i32 %219, ptr %30, align 4, !tbaa !9
  br label %190, !llvm.loop !19

220:                                              ; preds = %190
  %221 = load ptr, ptr %17, align 8, !tbaa !5
  %222 = load i32, ptr %26, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds %struct.doublecomplex, ptr %221, i64 %223
  %225 = call double @dznrm2_(ptr noundef %32, ptr noundef %224, ptr noundef @c__1)
  store double %225, ptr %35, align 8, !tbaa !18
  %226 = load ptr, ptr %17, align 8, !tbaa !5
  %227 = load i32, ptr %26, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds %struct.doublecomplex, ptr %226, i64 %228
  %230 = call { double, double } @Cd(ptr noundef %229)
  %231 = extractvalue { double, double } %230, 0
  %232 = extractvalue { double, double } %230, 1
  %233 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %234 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  store double %231, ptr %233, align 8
  store double %232, ptr %234, align 8
  %235 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %236 = load double, ptr %235, align 8
  %237 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %238 = load double, ptr %237, align 8
  %239 = call double @cabs(double noundef %236, double noundef %238) #6
  store double %239, ptr %28, align 8, !tbaa !18
  %240 = load double, ptr %28, align 8, !tbaa !18
  %241 = fcmp une double %240, 0.000000e+00
  br i1 %241, label %242, label %268

242:                                              ; preds = %220
  %243 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %243, ptr %22, align 4, !tbaa !9
  %244 = load ptr, ptr %17, align 8, !tbaa !5
  %245 = load i32, ptr %22, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds %struct.doublecomplex, ptr %244, i64 %246
  %248 = getelementptr inbounds %struct.doublecomplex, ptr %247, i32 0, i32 0
  %249 = load double, ptr %248, align 8, !tbaa !11
  %250 = load double, ptr %28, align 8, !tbaa !18
  %251 = fdiv double %249, %250
  %252 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %251, ptr %252, align 8, !tbaa !11
  %253 = load ptr, ptr %17, align 8, !tbaa !5
  %254 = load i32, ptr %22, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds %struct.doublecomplex, ptr %253, i64 %255
  %257 = getelementptr inbounds %struct.doublecomplex, ptr %256, i32 0, i32 1
  %258 = load double, ptr %257, align 8, !tbaa !14
  %259 = load double, ptr %28, align 8, !tbaa !18
  %260 = fdiv double %258, %259
  %261 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %260, ptr %261, align 8, !tbaa !14
  %262 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %263 = load double, ptr %262, align 8, !tbaa !11
  %264 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 0
  store double %263, ptr %264, align 8, !tbaa !11
  %265 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %266 = load double, ptr %265, align 8, !tbaa !14
  %267 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 1
  store double %266, ptr %267, align 8, !tbaa !14
  br label %271

268:                                              ; preds = %220
  %269 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 0
  store double 1.000000e+00, ptr %269, align 8, !tbaa !11
  %270 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 1
  store double 0.000000e+00, ptr %270, align 8, !tbaa !14
  br label %271

271:                                              ; preds = %268, %242
  %272 = load double, ptr %35, align 8, !tbaa !18
  %273 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 0
  %274 = load double, ptr %273, align 8, !tbaa !11
  %275 = fmul double %272, %274
  %276 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %275, ptr %276, align 8, !tbaa !11
  %277 = load double, ptr %35, align 8, !tbaa !18
  %278 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 1
  %279 = load double, ptr %278, align 8, !tbaa !14
  %280 = fmul double %277, %279
  %281 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %280, ptr %281, align 8, !tbaa !14
  %282 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %283 = load double, ptr %282, align 8, !tbaa !11
  %284 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  store double %283, ptr %284, align 8, !tbaa !11
  %285 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %286 = load double, ptr %285, align 8, !tbaa !14
  %287 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  store double %286, ptr %287, align 8, !tbaa !14
  %288 = load i32, ptr %34, align 4, !tbaa !9
  %289 = load i32, ptr %26, align 4, !tbaa !9
  %290 = add nsw i32 %288, %289
  store i32 %290, ptr %22, align 4, !tbaa !9
  %291 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 0
  %292 = load double, ptr %291, align 8, !tbaa !11
  %293 = fneg double %292
  %294 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %293, ptr %294, align 8, !tbaa !11
  %295 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 1
  %296 = load double, ptr %295, align 8, !tbaa !14
  %297 = fneg double %296
  %298 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %297, ptr %298, align 8, !tbaa !14
  %299 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %300 = load double, ptr %299, align 8, !tbaa !11
  %301 = load ptr, ptr %17, align 8, !tbaa !5
  %302 = load i32, ptr %22, align 4, !tbaa !9
  %303 = sext i32 %302 to i64
  %304 = getelementptr inbounds %struct.doublecomplex, ptr %301, i64 %303
  %305 = getelementptr inbounds %struct.doublecomplex, ptr %304, i32 0, i32 0
  store double %300, ptr %305, align 8, !tbaa !11
  %306 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %307 = load double, ptr %306, align 8, !tbaa !14
  %308 = load ptr, ptr %17, align 8, !tbaa !5
  %309 = load i32, ptr %22, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds %struct.doublecomplex, ptr %308, i64 %310
  %312 = getelementptr inbounds %struct.doublecomplex, ptr %311, i32 0, i32 1
  store double %307, ptr %312, align 8, !tbaa !14
  %313 = load double, ptr %35, align 8, !tbaa !18
  %314 = load double, ptr %35, align 8, !tbaa !18
  %315 = load double, ptr %28, align 8, !tbaa !18
  %316 = fadd double %314, %315
  %317 = fmul double %313, %316
  store double %317, ptr %36, align 8, !tbaa !18
  %318 = load double, ptr %36, align 8, !tbaa !18
  %319 = fcmp oge double %318, 0.000000e+00
  br i1 %319, label %320, label %322

320:                                              ; preds = %271
  %321 = load double, ptr %36, align 8, !tbaa !18
  br label %325

322:                                              ; preds = %271
  %323 = load double, ptr %36, align 8, !tbaa !18
  %324 = fneg double %323
  br label %325

325:                                              ; preds = %322, %320
  %326 = phi double [ %321, %320 ], [ %324, %322 ]
  %327 = fcmp olt double %326, 0x3BC79CA10C924223
  br i1 %327, label %328, label %334

328:                                              ; preds = %325
  %329 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 1, ptr %329, align 4, !tbaa !9
  %330 = load ptr, ptr %18, align 8, !tbaa !5
  %331 = load i32, ptr %330, align 4, !tbaa !9
  %332 = sub nsw i32 0, %331
  store i32 %332, ptr %22, align 4, !tbaa !9
  %333 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %22, i32 noundef 6)
  store i32 1, ptr %38, align 4
  br label %681

334:                                              ; preds = %325
  %335 = load double, ptr %36, align 8, !tbaa !18
  %336 = fdiv double 1.000000e+00, %335
  store double %336, ptr %36, align 8, !tbaa !18
  br label %337

337:                                              ; preds = %334
  %338 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %338, ptr %22, align 4, !tbaa !9
  %339 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %339, ptr %23, align 4, !tbaa !9
  %340 = load ptr, ptr %17, align 8, !tbaa !5
  %341 = load i32, ptr %23, align 4, !tbaa !9
  %342 = sext i32 %341 to i64
  %343 = getelementptr inbounds %struct.doublecomplex, ptr %340, i64 %342
  %344 = getelementptr inbounds %struct.doublecomplex, ptr %343, i32 0, i32 0
  %345 = load double, ptr %344, align 8, !tbaa !11
  %346 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 0
  %347 = load double, ptr %346, align 8, !tbaa !11
  %348 = fadd double %345, %347
  %349 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %348, ptr %349, align 8, !tbaa !11
  %350 = load ptr, ptr %17, align 8, !tbaa !5
  %351 = load i32, ptr %23, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds %struct.doublecomplex, ptr %350, i64 %352
  %354 = getelementptr inbounds %struct.doublecomplex, ptr %353, i32 0, i32 1
  %355 = load double, ptr %354, align 8, !tbaa !14
  %356 = getelementptr inbounds %struct.doublecomplex, ptr %37, i32 0, i32 1
  %357 = load double, ptr %356, align 8, !tbaa !14
  %358 = fadd double %355, %357
  %359 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %358, ptr %359, align 8, !tbaa !14
  %360 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %361 = load double, ptr %360, align 8, !tbaa !11
  %362 = load ptr, ptr %17, align 8, !tbaa !5
  %363 = load i32, ptr %22, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds %struct.doublecomplex, ptr %362, i64 %364
  %366 = getelementptr inbounds %struct.doublecomplex, ptr %365, i32 0, i32 0
  store double %361, ptr %366, align 8, !tbaa !11
  %367 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %368 = load double, ptr %367, align 8, !tbaa !14
  %369 = load ptr, ptr %17, align 8, !tbaa !5
  %370 = load i32, ptr %22, align 4, !tbaa !9
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds %struct.doublecomplex, ptr %369, i64 %371
  %373 = getelementptr inbounds %struct.doublecomplex, ptr %372, i32 0, i32 1
  store double %368, ptr %373, align 8, !tbaa !14
  %374 = load i32, ptr %33, align 4, !tbaa !9
  %375 = icmp eq i32 %374, 1
  br i1 %375, label %382, label %376

376:                                              ; preds = %337
  %377 = load i32, ptr %33, align 4, !tbaa !9
  %378 = icmp eq i32 %377, 3
  br i1 %378, label %382, label %379

379:                                              ; preds = %376
  %380 = load i32, ptr %33, align 4, !tbaa !9
  %381 = icmp eq i32 %380, 4
  br i1 %381, label %382, label %430

382:                                              ; preds = %379, %376, %337
  %383 = load ptr, ptr %13, align 8, !tbaa !5
  %384 = load ptr, ptr %14, align 8, !tbaa !5
  %385 = load i32, ptr %26, align 4, !tbaa !9
  %386 = load i32, ptr %19, align 4, !tbaa !9
  %387 = add nsw i32 %385, %386
  %388 = sext i32 %387 to i64
  %389 = getelementptr inbounds %struct.doublecomplex, ptr %384, i64 %388
  %390 = load ptr, ptr %15, align 8, !tbaa !5
  %391 = load ptr, ptr %17, align 8, !tbaa !5
  %392 = load i32, ptr %26, align 4, !tbaa !9
  %393 = sext i32 %392 to i64
  %394 = getelementptr inbounds %struct.doublecomplex, ptr %391, i64 %393
  %395 = load ptr, ptr %17, align 8, !tbaa !5
  %396 = load i32, ptr %34, align 4, !tbaa !9
  %397 = shl i32 %396, 1
  %398 = add nsw i32 %397, 1
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds %struct.doublecomplex, ptr %395, i64 %399
  call void @zgemv_(ptr noundef @.str.2, ptr noundef %32, ptr noundef %383, ptr noundef @c_b2, ptr noundef %389, ptr noundef %390, ptr noundef %394, ptr noundef @c__1, ptr noundef @c_b1, ptr noundef %400, ptr noundef @c__1)
  %401 = load double, ptr %36, align 8, !tbaa !18
  %402 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %401, ptr %402, align 8, !tbaa !11
  %403 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double 0.000000e+00, ptr %403, align 8, !tbaa !14
  %404 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %405 = load double, ptr %404, align 8, !tbaa !11
  %406 = fneg double %405
  %407 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %406, ptr %407, align 8, !tbaa !11
  %408 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %409 = load double, ptr %408, align 8, !tbaa !14
  %410 = fneg double %409
  %411 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %410, ptr %411, align 8, !tbaa !14
  %412 = load ptr, ptr %13, align 8, !tbaa !5
  %413 = load ptr, ptr %17, align 8, !tbaa !5
  %414 = load i32, ptr %26, align 4, !tbaa !9
  %415 = sext i32 %414 to i64
  %416 = getelementptr inbounds %struct.doublecomplex, ptr %413, i64 %415
  %417 = load ptr, ptr %17, align 8, !tbaa !5
  %418 = load i32, ptr %34, align 4, !tbaa !9
  %419 = shl i32 %418, 1
  %420 = add nsw i32 %419, 1
  %421 = sext i32 %420 to i64
  %422 = getelementptr inbounds %struct.doublecomplex, ptr %417, i64 %421
  %423 = load ptr, ptr %14, align 8, !tbaa !5
  %424 = load i32, ptr %26, align 4, !tbaa !9
  %425 = load i32, ptr %19, align 4, !tbaa !9
  %426 = add nsw i32 %424, %425
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds %struct.doublecomplex, ptr %423, i64 %427
  %429 = load ptr, ptr %15, align 8, !tbaa !5
  call void @zgerc_(ptr noundef %32, ptr noundef %412, ptr noundef %24, ptr noundef %416, ptr noundef @c__1, ptr noundef %422, ptr noundef @c__1, ptr noundef %428, ptr noundef %429)
  br label %430

430:                                              ; preds = %382, %379
  %431 = load i32, ptr %33, align 4, !tbaa !9
  %432 = icmp sge i32 %431, 2
  br i1 %432, label %433, label %494

433:                                              ; preds = %430
  %434 = load i32, ptr %33, align 4, !tbaa !9
  %435 = icmp sle i32 %434, 4
  br i1 %435, label %436, label %494

436:                                              ; preds = %433
  %437 = load i32, ptr %33, align 4, !tbaa !9
  %438 = icmp eq i32 %437, 4
  br i1 %438, label %439, label %444

439:                                              ; preds = %436
  %440 = load ptr, ptr %17, align 8, !tbaa !5
  %441 = load i32, ptr %26, align 4, !tbaa !9
  %442 = sext i32 %441 to i64
  %443 = getelementptr inbounds %struct.doublecomplex, ptr %440, i64 %442
  call void @zlacgv_(ptr noundef %32, ptr noundef %443, ptr noundef @c__1)
  br label %444

444:                                              ; preds = %439, %436
  %445 = load ptr, ptr %12, align 8, !tbaa !5
  %446 = load ptr, ptr %14, align 8, !tbaa !5
  %447 = load i32, ptr %26, align 4, !tbaa !9
  %448 = load i32, ptr %19, align 4, !tbaa !9
  %449 = mul nsw i32 %447, %448
  %450 = add nsw i32 %449, 1
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds %struct.doublecomplex, ptr %446, i64 %451
  %453 = load ptr, ptr %15, align 8, !tbaa !5
  %454 = load ptr, ptr %17, align 8, !tbaa !5
  %455 = load i32, ptr %26, align 4, !tbaa !9
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds %struct.doublecomplex, ptr %454, i64 %456
  %458 = load ptr, ptr %17, align 8, !tbaa !5
  %459 = load i32, ptr %34, align 4, !tbaa !9
  %460 = shl i32 %459, 1
  %461 = add nsw i32 %460, 1
  %462 = sext i32 %461 to i64
  %463 = getelementptr inbounds %struct.doublecomplex, ptr %458, i64 %462
  call void @zgemv_(ptr noundef @.str.7, ptr noundef %445, ptr noundef %32, ptr noundef @c_b2, ptr noundef %452, ptr noundef %453, ptr noundef %457, ptr noundef @c__1, ptr noundef @c_b1, ptr noundef %463, ptr noundef @c__1)
  %464 = load double, ptr %36, align 8, !tbaa !18
  %465 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  store double %464, ptr %465, align 8, !tbaa !11
  %466 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  store double 0.000000e+00, ptr %466, align 8, !tbaa !14
  %467 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 0
  %468 = load double, ptr %467, align 8, !tbaa !11
  %469 = fneg double %468
  %470 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %469, ptr %470, align 8, !tbaa !11
  %471 = getelementptr inbounds %struct.doublecomplex, ptr %25, i32 0, i32 1
  %472 = load double, ptr %471, align 8, !tbaa !14
  %473 = fneg double %472
  %474 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %473, ptr %474, align 8, !tbaa !14
  %475 = load ptr, ptr %12, align 8, !tbaa !5
  %476 = load ptr, ptr %17, align 8, !tbaa !5
  %477 = load i32, ptr %34, align 4, !tbaa !9
  %478 = shl i32 %477, 1
  %479 = add nsw i32 %478, 1
  %480 = sext i32 %479 to i64
  %481 = getelementptr inbounds %struct.doublecomplex, ptr %476, i64 %480
  %482 = load ptr, ptr %17, align 8, !tbaa !5
  %483 = load i32, ptr %26, align 4, !tbaa !9
  %484 = sext i32 %483 to i64
  %485 = getelementptr inbounds %struct.doublecomplex, ptr %482, i64 %484
  %486 = load ptr, ptr %14, align 8, !tbaa !5
  %487 = load i32, ptr %26, align 4, !tbaa !9
  %488 = load i32, ptr %19, align 4, !tbaa !9
  %489 = mul nsw i32 %487, %488
  %490 = add nsw i32 %489, 1
  %491 = sext i32 %490 to i64
  %492 = getelementptr inbounds %struct.doublecomplex, ptr %486, i64 %491
  %493 = load ptr, ptr %15, align 8, !tbaa !5
  call void @zgerc_(ptr noundef %475, ptr noundef %32, ptr noundef %24, ptr noundef %481, ptr noundef @c__1, ptr noundef %485, ptr noundef @c__1, ptr noundef %492, ptr noundef %493)
  br label %494

494:                                              ; preds = %444, %433, %430
  br label %495

495:                                              ; preds = %494
  %496 = load i32, ptr %32, align 4, !tbaa !9
  %497 = add nsw i32 %496, 1
  store i32 %497, ptr %32, align 4, !tbaa !9
  br label %179, !llvm.loop !20

498:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 16, ptr %41) #6
  %499 = load ptr, ptr %16, align 8, !tbaa !5
  %500 = getelementptr inbounds i32, ptr %499, i64 1
  %501 = call { double, double } @zlarnd_(ptr noundef @c__3, ptr noundef %500)
  %502 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %503 = extractvalue { double, double } %501, 0
  store double %503, ptr %502, align 8
  %504 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %505 = extractvalue { double, double } %501, 1
  store double %505, ptr %504, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %41, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %41) #6
  %506 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %507 = load double, ptr %506, align 8, !tbaa !11
  %508 = load ptr, ptr %17, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.doublecomplex, ptr %508, i64 1
  %510 = getelementptr inbounds %struct.doublecomplex, ptr %509, i32 0, i32 0
  store double %507, ptr %510, align 8, !tbaa !11
  %511 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %512 = load double, ptr %511, align 8, !tbaa !14
  %513 = load ptr, ptr %17, align 8, !tbaa !5
  %514 = getelementptr inbounds %struct.doublecomplex, ptr %513, i64 1
  %515 = getelementptr inbounds %struct.doublecomplex, ptr %514, i32 0, i32 1
  store double %512, ptr %515, align 8, !tbaa !14
  %516 = load ptr, ptr %17, align 8, !tbaa !5
  %517 = getelementptr inbounds %struct.doublecomplex, ptr %516, i64 1
  %518 = call { double, double } @Cd(ptr noundef %517)
  %519 = extractvalue { double, double } %518, 0
  %520 = extractvalue { double, double } %518, 1
  %521 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %522 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  store double %519, ptr %521, align 8
  store double %520, ptr %522, align 8
  %523 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %524 = load double, ptr %523, align 8
  %525 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %526 = load double, ptr %525, align 8
  %527 = call double @cabs(double noundef %524, double noundef %526) #6
  store double %527, ptr %28, align 8, !tbaa !18
  %528 = load double, ptr %28, align 8, !tbaa !18
  %529 = fcmp une double %528, 0.000000e+00
  br i1 %529, label %530, label %551

530:                                              ; preds = %498
  %531 = load ptr, ptr %17, align 8, !tbaa !5
  %532 = getelementptr inbounds %struct.doublecomplex, ptr %531, i64 1
  %533 = getelementptr inbounds %struct.doublecomplex, ptr %532, i32 0, i32 0
  %534 = load double, ptr %533, align 8, !tbaa !11
  %535 = load double, ptr %28, align 8, !tbaa !18
  %536 = fdiv double %534, %535
  %537 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  store double %536, ptr %537, align 8, !tbaa !11
  %538 = load ptr, ptr %17, align 8, !tbaa !5
  %539 = getelementptr inbounds %struct.doublecomplex, ptr %538, i64 1
  %540 = getelementptr inbounds %struct.doublecomplex, ptr %539, i32 0, i32 1
  %541 = load double, ptr %540, align 8, !tbaa !14
  %542 = load double, ptr %28, align 8, !tbaa !18
  %543 = fdiv double %541, %542
  %544 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  store double %543, ptr %544, align 8, !tbaa !14
  %545 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 0
  %546 = load double, ptr %545, align 8, !tbaa !11
  %547 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 0
  store double %546, ptr %547, align 8, !tbaa !11
  %548 = getelementptr inbounds %struct.doublecomplex, ptr %24, i32 0, i32 1
  %549 = load double, ptr %548, align 8, !tbaa !14
  %550 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 1
  store double %549, ptr %550, align 8, !tbaa !14
  br label %554

551:                                              ; preds = %498
  %552 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 0
  store double 1.000000e+00, ptr %552, align 8, !tbaa !11
  %553 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 1
  store double 0.000000e+00, ptr %553, align 8, !tbaa !14
  br label %554

554:                                              ; preds = %551, %530
  %555 = load i32, ptr %34, align 4, !tbaa !9
  %556 = shl i32 %555, 1
  store i32 %556, ptr %21, align 4, !tbaa !9
  %557 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 0
  %558 = load double, ptr %557, align 8, !tbaa !11
  %559 = load ptr, ptr %17, align 8, !tbaa !5
  %560 = load i32, ptr %21, align 4, !tbaa !9
  %561 = sext i32 %560 to i64
  %562 = getelementptr inbounds %struct.doublecomplex, ptr %559, i64 %561
  %563 = getelementptr inbounds %struct.doublecomplex, ptr %562, i32 0, i32 0
  store double %558, ptr %563, align 8, !tbaa !11
  %564 = getelementptr inbounds %struct.doublecomplex, ptr %31, i32 0, i32 1
  %565 = load double, ptr %564, align 8, !tbaa !14
  %566 = load ptr, ptr %17, align 8, !tbaa !5
  %567 = load i32, ptr %21, align 4, !tbaa !9
  %568 = sext i32 %567 to i64
  %569 = getelementptr inbounds %struct.doublecomplex, ptr %566, i64 %568
  %570 = getelementptr inbounds %struct.doublecomplex, ptr %569, i32 0, i32 1
  store double %565, ptr %570, align 8, !tbaa !14
  %571 = load i32, ptr %33, align 4, !tbaa !9
  %572 = icmp eq i32 %571, 1
  br i1 %572, label %579, label %573

573:                                              ; preds = %554
  %574 = load i32, ptr %33, align 4, !tbaa !9
  %575 = icmp eq i32 %574, 3
  br i1 %575, label %579, label %576

576:                                              ; preds = %573
  %577 = load i32, ptr %33, align 4, !tbaa !9
  %578 = icmp eq i32 %577, 4
  br i1 %578, label %579, label %612

579:                                              ; preds = %576, %573, %554
  %580 = load ptr, ptr %12, align 8, !tbaa !5
  %581 = load i32, ptr %580, align 4, !tbaa !9
  store i32 %581, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %29, align 4, !tbaa !9
  br label %582

582:                                              ; preds = %608, %579
  %583 = load i32, ptr %29, align 4, !tbaa !9
  %584 = load i32, ptr %21, align 4, !tbaa !9
  %585 = icmp sle i32 %583, %584
  br i1 %585, label %586, label %611

586:                                              ; preds = %582
  %587 = load ptr, ptr %17, align 8, !tbaa !5
  %588 = load i32, ptr %34, align 4, !tbaa !9
  %589 = load i32, ptr %29, align 4, !tbaa !9
  %590 = add nsw i32 %588, %589
  %591 = sext i32 %590 to i64
  %592 = getelementptr inbounds %struct.doublecomplex, ptr %587, i64 %591
  %593 = call { double, double } @Cd(ptr noundef %592)
  %594 = extractvalue { double, double } %593, 0
  %595 = extractvalue { double, double } %593, 1
  %596 = fneg double %595
  %597 = call ptr @_pCd(ptr noundef %24)
  %598 = getelementptr inbounds { double, double }, ptr %597, i32 0, i32 0
  %599 = getelementptr inbounds { double, double }, ptr %597, i32 0, i32 1
  store double %594, ptr %598, align 8
  store double %596, ptr %599, align 8
  %600 = load ptr, ptr %13, align 8, !tbaa !5
  %601 = load ptr, ptr %14, align 8, !tbaa !5
  %602 = load i32, ptr %29, align 4, !tbaa !9
  %603 = load i32, ptr %19, align 4, !tbaa !9
  %604 = add nsw i32 %602, %603
  %605 = sext i32 %604 to i64
  %606 = getelementptr inbounds %struct.doublecomplex, ptr %601, i64 %605
  %607 = load ptr, ptr %15, align 8, !tbaa !5
  call void @zscal_(ptr noundef %600, ptr noundef %24, ptr noundef %606, ptr noundef %607)
  br label %608

608:                                              ; preds = %586
  %609 = load i32, ptr %29, align 4, !tbaa !9
  %610 = add nsw i32 %609, 1
  store i32 %610, ptr %29, align 4, !tbaa !9
  br label %582, !llvm.loop !21

611:                                              ; preds = %582
  br label %612

612:                                              ; preds = %611, %576
  %613 = load i32, ptr %33, align 4, !tbaa !9
  %614 = icmp eq i32 %613, 2
  br i1 %614, label %618, label %615

615:                                              ; preds = %612
  %616 = load i32, ptr %33, align 4, !tbaa !9
  %617 = icmp eq i32 %616, 3
  br i1 %617, label %618, label %644

618:                                              ; preds = %615, %612
  %619 = load ptr, ptr %13, align 8, !tbaa !5
  %620 = load i32, ptr %619, align 4, !tbaa !9
  store i32 %620, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %621

621:                                              ; preds = %640, %618
  %622 = load i32, ptr %27, align 4, !tbaa !9
  %623 = load i32, ptr %21, align 4, !tbaa !9
  %624 = icmp sle i32 %622, %623
  br i1 %624, label %625, label %643

625:                                              ; preds = %621
  %626 = load ptr, ptr %12, align 8, !tbaa !5
  %627 = load ptr, ptr %17, align 8, !tbaa !5
  %628 = load i32, ptr %34, align 4, !tbaa !9
  %629 = load i32, ptr %27, align 4, !tbaa !9
  %630 = add nsw i32 %628, %629
  %631 = sext i32 %630 to i64
  %632 = getelementptr inbounds %struct.doublecomplex, ptr %627, i64 %631
  %633 = load ptr, ptr %14, align 8, !tbaa !5
  %634 = load i32, ptr %27, align 4, !tbaa !9
  %635 = load i32, ptr %19, align 4, !tbaa !9
  %636 = mul nsw i32 %634, %635
  %637 = add nsw i32 %636, 1
  %638 = sext i32 %637 to i64
  %639 = getelementptr inbounds %struct.doublecomplex, ptr %633, i64 %638
  call void @zscal_(ptr noundef %626, ptr noundef %632, ptr noundef %639, ptr noundef @c__1)
  br label %640

640:                                              ; preds = %625
  %641 = load i32, ptr %27, align 4, !tbaa !9
  %642 = add nsw i32 %641, 1
  store i32 %642, ptr %27, align 4, !tbaa !9
  br label %621, !llvm.loop !22

643:                                              ; preds = %621
  br label %644

644:                                              ; preds = %643, %615
  %645 = load i32, ptr %33, align 4, !tbaa !9
  %646 = icmp eq i32 %645, 4
  br i1 %646, label %647, label %680

647:                                              ; preds = %644
  %648 = load ptr, ptr %13, align 8, !tbaa !5
  %649 = load i32, ptr %648, align 4, !tbaa !9
  store i32 %649, ptr %21, align 4, !tbaa !9
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %650

650:                                              ; preds = %676, %647
  %651 = load i32, ptr %27, align 4, !tbaa !9
  %652 = load i32, ptr %21, align 4, !tbaa !9
  %653 = icmp sle i32 %651, %652
  br i1 %653, label %654, label %679

654:                                              ; preds = %650
  %655 = load ptr, ptr %17, align 8, !tbaa !5
  %656 = load i32, ptr %34, align 4, !tbaa !9
  %657 = load i32, ptr %27, align 4, !tbaa !9
  %658 = add nsw i32 %656, %657
  %659 = sext i32 %658 to i64
  %660 = getelementptr inbounds %struct.doublecomplex, ptr %655, i64 %659
  %661 = call { double, double } @Cd(ptr noundef %660)
  %662 = extractvalue { double, double } %661, 0
  %663 = extractvalue { double, double } %661, 1
  %664 = fneg double %663
  %665 = call ptr @_pCd(ptr noundef %24)
  %666 = getelementptr inbounds { double, double }, ptr %665, i32 0, i32 0
  %667 = getelementptr inbounds { double, double }, ptr %665, i32 0, i32 1
  store double %662, ptr %666, align 8
  store double %664, ptr %667, align 8
  %668 = load ptr, ptr %12, align 8, !tbaa !5
  %669 = load ptr, ptr %14, align 8, !tbaa !5
  %670 = load i32, ptr %27, align 4, !tbaa !9
  %671 = load i32, ptr %19, align 4, !tbaa !9
  %672 = mul nsw i32 %670, %671
  %673 = add nsw i32 %672, 1
  %674 = sext i32 %673 to i64
  %675 = getelementptr inbounds %struct.doublecomplex, ptr %669, i64 %674
  call void @zscal_(ptr noundef %668, ptr noundef %24, ptr noundef %675, ptr noundef @c__1)
  br label %676

676:                                              ; preds = %654
  %677 = load i32, ptr %27, align 4, !tbaa !9
  %678 = add nsw i32 %677, 1
  store i32 %678, ptr %27, align 4, !tbaa !9
  br label %650, !llvm.loop !23

679:                                              ; preds = %650
  br label %680

680:                                              ; preds = %679, %644
  store i32 1, ptr %38, align 4
  br label %681

681:                                              ; preds = %680, %328, %130, %65
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  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 @lsame_(ptr noundef, ptr noundef) #2

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

declare void @zlaset_(ptr noundef, ptr noundef, ptr noundef, 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) #3

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

declare double @dznrm2_(ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(ptr noundef) #5

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

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { 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 #6 = { nounwind }

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

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


; 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 [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [5 x i8], align 1
@c_b1 = external hidden global %struct.doublecomplex, align 8
@c_b2 = external hidden global %struct.doublecomplex, align 8
@c__3 = external hidden global i32, align 4
@c__1 = external hidden global i32, align 4
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1

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

20:                                               ; preds = %9
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = icmp eq i32 %21, 0
  br i1 %22, label %.loopexit, label %23

23:                                               ; preds = %20
  %24 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #6
  %.not = icmp ne i32 %24, 0
  br i1 %.not, label %31, label %25

25:                                               ; preds = %23
  %26 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #6
  %.not218 = icmp eq i32 %26, 0
  br i1 %.not218, label %27, label %31

27:                                               ; preds = %25
  %28 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #6
  %.not219 = icmp eq i32 %28, 0
  br i1 %.not219, label %29, label %31

29:                                               ; preds = %27
  %30 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.3) #6
  %.not220 = icmp eq i32 %30, 0
  br i1 %.not220, label %.thread241.sink.split, label %31

31:                                               ; preds = %29, %23, %25, %27
  %.ph = phi i1 [ true, %27 ], [ false, %25 ], [ false, %23 ], [ false, %29 ]
  %.ph232 = phi i1 [ false, %27 ], [ false, %25 ], [ false, %23 ], [ true, %29 ]
  %.ph233 = phi i1 [ false, %27 ], [ true, %25 ], [ false, %23 ], [ false, %29 ]
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %.thread241.sink.split, label %34

34:                                               ; preds = %31
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 0
  %.not221 = icmp ne i32 %35, %32
  %or.cond231.not = and i1 %.ph, %.not221
  %or.cond243 = or i1 %36, %or.cond231.not
  br i1 %or.cond243, label %.thread241.sink.split, label %37

37:                                               ; preds = %34
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = icmp slt i32 %38, %32
  br i1 %39, label %.thread241.sink.split, label %40

40:                                               ; preds = %37
  %.pr = load i32, ptr %8, align 4, !tbaa !5
  %.not222 = icmp eq i32 %.pr, 0
  br i1 %.not222, label %43, label %.thread241

.thread241.sink.split:                            ; preds = %37, %34, %31, %29
  %.sink = phi i32 [ -1, %29 ], [ -3, %31 ], [ -4, %34 ], [ -6, %37 ]
  store i32 %.sink, ptr %8, align 4, !tbaa !5
  br label %.thread241

.thread241:                                       ; preds = %.thread241.sink.split, %40
  %41 = phi i32 [ %.pr, %40 ], [ %.sink, %.thread241.sink.split ]
  %42 = sub nsw i32 0, %41
  store i32 %42, ptr %10, align 4, !tbaa !5
  br label %.loopexit.sink.split

43:                                               ; preds = %40
  %44 = select i1 %.not, i32 %32, i32 %35
  %45 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.5) #6
  %.not223 = icmp eq i32 %45, 0
  br i1 %.not223, label %47, label %46

46:                                               ; preds = %43
  tail call void @zlaset_(ptr noundef nonnull @.str.6, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull @c_b1, ptr noundef nonnull @c_b2, ptr noundef %4, ptr noundef nonnull %5) #6
  br label %47

47:                                               ; preds = %46, %43
  %.not224247 = icmp eq i32 %44, 0
  br i1 %.not224247, label %._crit_edge.thread, label %._crit_edge

._crit_edge.thread:                               ; preds = %47
  store i32 %44, ptr %11, align 4, !tbaa !5
  store i32 %44, ptr %10, align 4, !tbaa !5
  store i32 2, ptr %13, align 4, !tbaa !5
  br label %._crit_edge258

._crit_edge:                                      ; preds = %47
  %48 = zext nneg i32 %44 to i64
  %49 = shl nuw nsw i64 %48, 4
  tail call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 %49, i1 false), !tbaa !9
  store i32 %44, ptr %11, align 4, !tbaa !5
  store i32 %44, ptr %10, align 4, !tbaa !5
  %invariant.gep = getelementptr i8, ptr %16, i64 16
  store i32 2, ptr %13, align 4, !tbaa !5
  %.not225254 = icmp eq i32 %44, 1
  br i1 %.not225254, label %._crit_edge258, label %.lr.ph257

.lr.ph257:                                        ; preds = %._crit_edge
  %.sroa.416.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  %or.cond = or i1 %.not, %.ph
  %or.cond3 = or i1 %or.cond, %.ph232
  %50 = shl nuw i32 %44, 1
  %51 = or disjoint i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %52
  %54 = zext nneg i32 %44 to i64
  br label %55

55:                                               ; preds = %.lr.ph257, %106
  %storemerge255 = phi i32 [ 2, %.lr.ph257 ], [ %108, %106 ]
  %56 = sub i32 %44, %storemerge255
  %57 = add i32 %56, 1
  store i32 %44, ptr %11, align 4, !tbaa !5
  %.not229249.not = icmp sgt i32 %storemerge255, 0
  %58 = sext i32 %57 to i64
  br i1 %.not229249.not, label %.lr.ph252, label %._crit_edge253

.lr.ph252:                                        ; preds = %55, %.lr.ph252
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph252 ], [ %58, %55 ]
  %59 = call { double, double } @zlarnd_(ptr noundef nonnull @c__3, ptr noundef %6) #6
  %60 = extractvalue { double, double } %59, 0
  %61 = extractvalue { double, double } %59, 1
  store double %60, ptr %12, align 16, !tbaa !9
  store double %61, ptr %.sroa.416.0..sroa_idx, align 8, !tbaa !9
  %62 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %indvars.iv
  store double %60, ptr %62, align 8, !tbaa !11
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  store double %61, ptr %63, align 8, !tbaa !13
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %.not229.not = icmp slt i64 %indvars.iv, %54
  br i1 %.not229.not, label %.lr.ph252, label %._crit_edge253, !llvm.loop !14

._crit_edge253:                                   ; preds = %.lr.ph252, %55
  %64 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %58
  %65 = call double @dznrm2_(ptr noundef nonnull %13, ptr noundef nonnull %64, ptr noundef nonnull @c__1) #6
  %66 = call { double, double } @Cd(ptr noundef nonnull %64)
  %67 = extractvalue { double, double } %66, 0
  %68 = extractvalue { double, double } %66, 1
  %69 = call double @cabs(double noundef %67, double noundef %68) #6
  %70 = fcmp une double %69, 0.000000e+00
  br i1 %70, label %71, label %76

71:                                               ; preds = %._crit_edge253
  %72 = load <2 x double>, ptr %64, align 8, !tbaa !9
  %73 = insertelement <2 x double> poison, double %69, i64 0
  %74 = shufflevector <2 x double> %73, <2 x double> poison, <2 x i32> zeroinitializer
  %75 = fdiv <2 x double> %72, %74
  br label %76

76:                                               ; preds = %._crit_edge253, %71
  %77 = phi <2 x double> [ %75, %71 ], [ <double 1.000000e+00, double 0.000000e+00>, %._crit_edge253 ]
  %78 = add nsw i32 %57, %44
  %79 = fneg <2 x double> %77
  store <2 x double> %79, ptr %12, align 16, !tbaa !9
  %80 = sext i32 %78 to i64
  %81 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %80
  store <2 x double> %79, ptr %81, align 8, !tbaa !9
  %82 = fadd double %65, %69
  %83 = fmul double %65, %82
  %84 = fcmp oge double %83, 0.000000e+00
  %85 = fneg double %83
  %86 = select i1 %84, double %83, double %85
  %87 = fcmp olt double %86, 0x3BC79CA10C924223
  br i1 %87, label %88, label %89

88:                                               ; preds = %76
  store i32 1, ptr %8, align 4, !tbaa !5
  store i32 -1, ptr %11, align 4, !tbaa !5
  br label %.loopexit.sink.split

89:                                               ; preds = %76
  %90 = insertelement <2 x double> poison, double %65, i64 0
  %91 = shufflevector <2 x double> %90, <2 x double> poison, <2 x i32> zeroinitializer
  %92 = fmul <2 x double> %91, %77
  %93 = fdiv double 1.000000e+00, %83
  store i32 %57, ptr %11, align 4, !tbaa !5
  %94 = load <2 x double>, ptr %64, align 8, !tbaa !9
  %95 = fadd <2 x double> %92, %94
  store <2 x double> %95, ptr %12, align 16, !tbaa !9
  store <2 x double> %95, ptr %64, align 8, !tbaa !9
  br i1 %or.cond3, label %96, label %.thread

96:                                               ; preds = %89
  %97 = add nsw i32 %57, %14
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %struct.doublecomplex, ptr %16, i64 %98
  call void @zgemv_(ptr noundef nonnull @.str.2, ptr noundef nonnull %13, ptr noundef nonnull %3, ptr noundef nonnull @c_b2, ptr noundef %99, ptr noundef nonnull %5, ptr noundef nonnull %64, ptr noundef nonnull @c__1, ptr noundef nonnull @c_b1, ptr noundef nonnull %53, ptr noundef nonnull @c__1) #6
  %100 = fneg double %93
  store double %100, ptr %12, align 16, !tbaa !11
  store double -0.000000e+00, ptr %.sroa.416.0..sroa_idx, align 8, !tbaa !13
  call void @zgerc_(ptr noundef nonnull %13, ptr noundef nonnull %3, ptr noundef nonnull %12, ptr noundef nonnull %64, ptr noundef nonnull @c__1, ptr noundef nonnull %53, ptr noundef nonnull @c__1, ptr noundef %99, ptr noundef nonnull %5) #6
  br i1 %.not, label %106, label %.thread

.thread:                                          ; preds = %89, %96
  br i1 %.ph232, label %101, label %102

101:                                              ; preds = %.thread
  call void @zlacgv_(ptr noundef nonnull %13, ptr noundef nonnull %64, ptr noundef nonnull @c__1) #6
  br label %102

102:                                              ; preds = %101, %.thread
  %103 = mul nsw i32 %57, %14
  %104 = sext i32 %103 to i64
  %gep = getelementptr %struct.doublecomplex, ptr %invariant.gep, i64 %104
  call void @zgemv_(ptr noundef nonnull @.str.7, ptr noundef nonnull %2, ptr noundef nonnull %13, ptr noundef nonnull @c_b2, ptr noundef %gep, ptr noundef nonnull %5, ptr noundef nonnull %64, ptr noundef nonnull @c__1, ptr noundef nonnull @c_b1, ptr noundef nonnull %53, ptr noundef nonnull @c__1) #6
  %105 = fneg double %93
  store double %105, ptr %12, align 16, !tbaa !11
  store double -0.000000e+00, ptr %.sroa.416.0..sroa_idx, align 8, !tbaa !13
  call void @zgerc_(ptr noundef nonnull %2, ptr noundef nonnull %13, ptr noundef nonnull %12, ptr noundef nonnull %53, ptr noundef nonnull @c__1, ptr noundef nonnull %64, ptr noundef nonnull @c__1, ptr noundef %gep, ptr noundef nonnull %5) #6
  br label %106

106:                                              ; preds = %96, %102
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %13, align 4, !tbaa !5
  %.not225.not = icmp slt i32 %107, %44
  br i1 %.not225.not, label %55, label %._crit_edge258, !llvm.loop !16

._crit_edge258:                                   ; preds = %106, %._crit_edge.thread, %._crit_edge
  %109 = call { double, double } @zlarnd_(ptr noundef nonnull @c__3, ptr noundef %6) #6
  %110 = extractvalue { double, double } %109, 0
  %111 = extractvalue { double, double } %109, 1
  store double %110, ptr %12, align 16, !tbaa !9
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 8
  store double %111, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !9
  store double %110, ptr %7, align 8, !tbaa !11
  %112 = getelementptr inbounds i8, ptr %7, i64 8
  store double %111, ptr %112, align 8, !tbaa !13
  %113 = call { double, double } @Cd(ptr noundef nonnull %7)
  %114 = extractvalue { double, double } %113, 0
  %115 = extractvalue { double, double } %113, 1
  %116 = call double @cabs(double noundef %114, double noundef %115) #6
  %117 = fcmp une double %116, 0.000000e+00
  br i1 %117, label %118, label %123

118:                                              ; preds = %._crit_edge258
  %119 = load <2 x double>, ptr %7, align 8, !tbaa !9
  %120 = insertelement <2 x double> poison, double %116, i64 0
  %121 = shufflevector <2 x double> %120, <2 x double> poison, <2 x i32> zeroinitializer
  %122 = fdiv <2 x double> %119, %121
  store <2 x double> %122, ptr %12, align 16, !tbaa !9
  br label %123

123:                                              ; preds = %._crit_edge258, %118
  %124 = phi <2 x double> [ %122, %118 ], [ <double 1.000000e+00, double 0.000000e+00>, %._crit_edge258 ]
  %125 = shl nuw i32 %44, 1
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %126
  store <2 x double> %124, ptr %127, align 8, !tbaa !9
  %or.cond7 = or i1 %.not, %.ph
  %or.cond9 = or i1 %or.cond7, %.ph232
  br i1 %or.cond9, label %128, label %.loopexit245

128:                                              ; preds = %123
  %129 = load i32, ptr %2, align 4, !tbaa !5
  %.not226259 = icmp slt i32 %129, 1
  br i1 %.not226259, label %.loopexit245, label %.lr.ph262.preheader

.lr.ph262.preheader:                              ; preds = %128
  %130 = zext nneg i32 %44 to i64
  %131 = sext i32 %14 to i64
  %invariant.gep289 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %130
  %invariant.gep291 = getelementptr %struct.doublecomplex, ptr %16, i64 %131
  %132 = zext nneg i32 %129 to i64
  br label %.lr.ph262

.lr.ph262:                                        ; preds = %.lr.ph262.preheader, %.lr.ph262
  %indvars.iv277 = phi i64 [ 1, %.lr.ph262.preheader ], [ %indvars.iv.next278, %.lr.ph262 ]
  %gep290 = getelementptr inbounds %struct.doublecomplex, ptr %invariant.gep289, i64 %indvars.iv277
  %133 = call { double, double } @Cd(ptr noundef nonnull %gep290)
  %134 = extractvalue { double, double } %133, 0
  %135 = extractvalue { double, double } %133, 1
  %136 = fneg double %135
  %137 = call ptr @_pCd(ptr noundef nonnull %12)
  %138 = getelementptr inbounds i8, ptr %137, i64 8
  store double %134, ptr %137, align 8
  store double %136, ptr %138, align 8
  %gep292 = getelementptr %struct.doublecomplex, ptr %invariant.gep291, i64 %indvars.iv277
  call void @zscal_(ptr noundef nonnull %3, ptr noundef nonnull %12, ptr noundef %gep292, ptr noundef nonnull %5) #6
  %indvars.iv.next278 = add nuw nsw i64 %indvars.iv277, 1
  %.not226.not = icmp ult i64 %indvars.iv277, %132
  br i1 %.not226.not, label %.lr.ph262, label %.loopexit245, !llvm.loop !17

.loopexit245:                                     ; preds = %.lr.ph262, %128, %123
  %or.cond11 = or i1 %.ph, %.ph233
  br i1 %or.cond11, label %139, label %.loopexit244

139:                                              ; preds = %.loopexit245
  %140 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %140, ptr %10, align 4, !tbaa !5
  %.not227265 = icmp slt i32 %140, 1
  br i1 %.not227265, label %.loopexit244, label %.lr.ph268.preheader

.lr.ph268.preheader:                              ; preds = %139
  %141 = zext nneg i32 %44 to i64
  %142 = sext i32 %14 to i64
  %invariant.gep293 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %141
  %143 = zext nneg i32 %140 to i64
  %144 = getelementptr i8, ptr %16, i64 16
  br label %.lr.ph268

.lr.ph268:                                        ; preds = %.lr.ph268.preheader, %.lr.ph268
  %indvars.iv280 = phi i64 [ 1, %.lr.ph268.preheader ], [ %indvars.iv.next281, %.lr.ph268 ]
  %gep294 = getelementptr inbounds %struct.doublecomplex, ptr %invariant.gep293, i64 %indvars.iv280
  %145 = mul nsw i64 %indvars.iv280, %142
  %gep264 = getelementptr %struct.doublecomplex, ptr %144, i64 %145
  call void @zscal_(ptr noundef nonnull %2, ptr noundef nonnull %gep294, ptr noundef %gep264, ptr noundef nonnull @c__1) #6
  %indvars.iv.next281 = add nuw nsw i64 %indvars.iv280, 1
  %.not227.not = icmp ult i64 %indvars.iv280, %143
  br i1 %.not227.not, label %.lr.ph268, label %.loopexit244, !llvm.loop !18

.loopexit244:                                     ; preds = %.lr.ph268, %139, %.loopexit245
  br i1 %.ph232, label %146, label %.loopexit

146:                                              ; preds = %.loopexit244
  %147 = load i32, ptr %3, align 4, !tbaa !5
  store i32 %147, ptr %10, align 4, !tbaa !5
  %.not228271 = icmp slt i32 %147, 1
  br i1 %.not228271, label %.loopexit, label %.lr.ph274.preheader

.lr.ph274.preheader:                              ; preds = %146
  %148 = zext nneg i32 %44 to i64
  %149 = sext i32 %14 to i64
  %invariant.gep295 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %148
  %150 = zext nneg i32 %147 to i64
  %151 = getelementptr i8, ptr %16, i64 16
  br label %.lr.ph274

.lr.ph274:                                        ; preds = %.lr.ph274.preheader, %.lr.ph274
  %indvars.iv283 = phi i64 [ 1, %.lr.ph274.preheader ], [ %indvars.iv.next284, %.lr.ph274 ]
  %gep296 = getelementptr inbounds %struct.doublecomplex, ptr %invariant.gep295, i64 %indvars.iv283
  %152 = call { double, double } @Cd(ptr noundef nonnull %gep296)
  %153 = extractvalue { double, double } %152, 0
  %154 = extractvalue { double, double } %152, 1
  %155 = fneg double %154
  %156 = call ptr @_pCd(ptr noundef nonnull %12)
  %157 = getelementptr inbounds i8, ptr %156, i64 8
  store double %153, ptr %156, align 8
  store double %155, ptr %157, align 8
  %158 = mul nsw i64 %indvars.iv283, %149
  %gep270 = getelementptr %struct.doublecomplex, ptr %151, i64 %158
  call void @zscal_(ptr noundef nonnull %2, ptr noundef nonnull %12, ptr noundef %gep270, ptr noundef nonnull @c__1) #6
  %indvars.iv.next284 = add nuw nsw i64 %indvars.iv283, 1
  %.not228.not = icmp ult i64 %indvars.iv283, %150
  br i1 %.not228.not, label %.lr.ph274, label %.loopexit, !llvm.loop !19

.loopexit.sink.split:                             ; preds = %.thread241, %88
  %.sink298 = phi ptr [ %11, %88 ], [ %10, %.thread241 ]
  %159 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %.sink298, i32 noundef 6) #6
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph274, %.loopexit.sink.split, %146, %.loopexit244, %9, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  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 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @zlaset_(ptr noundef, ptr noundef, ptr noundef, 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

declare double @dznrm2_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @_pCd(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

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 = { 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 #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 8}
!13 = !{!12, !10, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}


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