; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (ztptri)

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

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

31:                                               ; preds = %5
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = call i32 @lsame_(ptr noundef %32, ptr noundef @.str.2)
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %37, label %35

35:                                               ; preds = %31
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 -1, ptr %36, align 4, !tbaa !9
  br label %54

37:                                               ; preds = %31, %5
  %38 = load i32, ptr %19, align 4, !tbaa !9
  %39 = icmp ne i32 %38, 0
  br i1 %39, label %46, label %40

40:                                               ; preds = %37
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = call i32 @lsame_(ptr noundef %41, ptr noundef @.str)
  %43 = icmp ne i32 %42, 0
  br i1 %43, label %46, label %44

44:                                               ; preds = %40
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 -2, ptr %45, align 4, !tbaa !9
  br label %53

46:                                               ; preds = %40, %37
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = icmp slt i32 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %46
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 -3, ptr %51, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %50, %46
  br label %53

53:                                               ; preds = %52, %44
  br label %54

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

58:                                               ; preds = %54
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = sub nsw i32 0, %60
  store i32 %61, ptr %11, align 4, !tbaa !9
  %62 = call i32 @xerbla_(ptr noundef @.str.3, ptr noundef %11, i32 noundef 6)
  store i32 1, ptr %21, align 4
  br label %381

63:                                               ; preds = %54
  %64 = load i32, ptr %19, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %149

66:                                               ; preds = %63
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %106

69:                                               ; preds = %66
  store i32 0, ptr %17, align 4, !tbaa !9
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = load i32, ptr %70, align 4, !tbaa !9
  store i32 %71, ptr %11, align 4, !tbaa !9
  %72 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %72, align 4, !tbaa !9
  br label %73

73:                                               ; preds = %101, %69
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = load i32, ptr %74, align 4, !tbaa !9
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %78, label %105

78:                                               ; preds = %73
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = load i32, ptr %17, align 4, !tbaa !9
  %82 = add nsw i32 %81, %80
  store i32 %82, ptr %17, align 4, !tbaa !9
  %83 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %83, ptr %12, align 4, !tbaa !9
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load i32, ptr %12, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %struct.doublecomplex, ptr %84, i64 %86
  %88 = getelementptr inbounds %struct.doublecomplex, ptr %87, i32 0, i32 0
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = fcmp oeq double %89, 0.000000e+00
  br i1 %90, label %91, label %100

91:                                               ; preds = %78
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds %struct.doublecomplex, ptr %92, i64 %94
  %96 = getelementptr inbounds %struct.doublecomplex, ptr %95, i32 0, i32 1
  %97 = load double, ptr %96, align 8, !tbaa !14
  %98 = fcmp oeq double %97, 0.000000e+00
  br i1 %98, label %99, label %100

99:                                               ; preds = %91
  store i32 1, ptr %21, align 4
  br label %381

100:                                              ; preds = %91, %78
  br label %101

101:                                              ; preds = %100
  %102 = load ptr, ptr %10, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %102, align 4, !tbaa !9
  br label %73, !llvm.loop !15

105:                                              ; preds = %73
  br label %147

106:                                              ; preds = %66
  store i32 1, ptr %17, align 4, !tbaa !9
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = load i32, ptr %107, align 4, !tbaa !9
  store i32 %108, ptr %11, align 4, !tbaa !9
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %109, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %142, %106
  %111 = load ptr, ptr %10, align 8, !tbaa !5
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = load i32, ptr %11, align 4, !tbaa !9
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %115, label %146

115:                                              ; preds = %110
  %116 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %116, ptr %12, align 4, !tbaa !9
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds %struct.doublecomplex, ptr %117, i64 %119
  %121 = getelementptr inbounds %struct.doublecomplex, ptr %120, i32 0, i32 0
  %122 = load double, ptr %121, align 8, !tbaa !11
  %123 = fcmp oeq double %122, 0.000000e+00
  br i1 %123, label %124, label %133

124:                                              ; preds = %115
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = load i32, ptr %12, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds %struct.doublecomplex, ptr %125, i64 %127
  %129 = getelementptr inbounds %struct.doublecomplex, ptr %128, i32 0, i32 1
  %130 = load double, ptr %129, align 8, !tbaa !14
  %131 = fcmp oeq double %130, 0.000000e+00
  br i1 %131, label %132, label %133

132:                                              ; preds = %124
  store i32 1, ptr %21, align 4
  br label %381

133:                                              ; preds = %124, %115
  %134 = load i32, ptr %17, align 4, !tbaa !9
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = add nsw i32 %134, %136
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = sub nsw i32 %137, %139
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %17, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %133
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr %143, align 4, !tbaa !9
  br label %110, !llvm.loop !17

146:                                              ; preds = %110
  br label %147

147:                                              ; preds = %146, %105
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %148, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %147, %63
  %150 = load i32, ptr %15, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %258

152:                                              ; preds = %149
  store i32 1, ptr %16, align 4, !tbaa !9
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  store i32 %154, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %254, %152
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = load i32, ptr %11, align 4, !tbaa !9
  %158 = icmp sle i32 %156, %157
  br i1 %158, label %159, label %257

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

162:                                              ; preds = %159
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = load i32, ptr %14, align 4, !tbaa !9
  %165 = add nsw i32 %163, %164
  %166 = sub nsw i32 %165, 1
  store i32 %166, ptr %12, align 4, !tbaa !9
  %167 = call { double, double } @Cd(ptr noundef @c_b1)
  %168 = extractvalue { double, double } %167, 0
  %169 = extractvalue { double, double } %167, 1
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = load i32, ptr %16, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = add nsw i32 %171, %172
  %174 = sub nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds %struct.doublecomplex, ptr %170, i64 %175
  %177 = call { double, double } @Cd(ptr noundef %176)
  %178 = extractvalue { double, double } %177, 0
  %179 = extractvalue { double, double } %177, 1
  %180 = call { double, double } @__divdc3(double noundef %168, double noundef %169, double noundef %178, double noundef %179) #4
  %181 = extractvalue { double, double } %180, 0
  %182 = extractvalue { double, double } %180, 1
  %183 = call ptr @_pCd(ptr noundef %13)
  %184 = getelementptr inbounds { double, double }, ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds { double, double }, ptr %183, i32 0, i32 1
  store double %181, ptr %184, align 8
  store double %182, ptr %185, align 8
  %186 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  %187 = load double, ptr %186, align 8, !tbaa !11
  %188 = load ptr, ptr %9, align 8, !tbaa !5
  %189 = load i32, ptr %12, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds %struct.doublecomplex, ptr %188, i64 %190
  %192 = getelementptr inbounds %struct.doublecomplex, ptr %191, i32 0, i32 0
  store double %187, ptr %192, align 8, !tbaa !11
  %193 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  %194 = load double, ptr %193, align 8, !tbaa !14
  %195 = load ptr, ptr %9, align 8, !tbaa !5
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds %struct.doublecomplex, ptr %195, i64 %197
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %198, i32 0, i32 1
  store double %194, ptr %199, align 8, !tbaa !14
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = add nsw i32 %200, %201
  %203 = sub nsw i32 %202, 1
  store i32 %203, ptr %12, align 4, !tbaa !9
  %204 = load ptr, ptr %9, align 8, !tbaa !5
  %205 = load i32, ptr %12, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds %struct.doublecomplex, ptr %204, i64 %206
  %208 = getelementptr inbounds %struct.doublecomplex, ptr %207, i32 0, i32 0
  %209 = load double, ptr %208, align 8, !tbaa !11
  %210 = fneg double %209
  %211 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  store double %210, ptr %211, align 8, !tbaa !11
  %212 = load ptr, ptr %9, align 8, !tbaa !5
  %213 = load i32, ptr %12, 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
  %217 = load double, ptr %216, align 8, !tbaa !14
  %218 = fneg double %217
  %219 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  store double %218, ptr %219, align 8, !tbaa !14
  %220 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  %221 = load double, ptr %220, align 8, !tbaa !11
  %222 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 0
  store double %221, ptr %222, align 8, !tbaa !11
  %223 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  %224 = load double, ptr %223, align 8, !tbaa !14
  %225 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 1
  store double %224, ptr %225, align 8, !tbaa !14
  br label %235

226:                                              ; preds = %159
  %227 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  store double -1.000000e+00, ptr %227, align 8, !tbaa !11
  %228 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  store double 0.000000e+00, ptr %228, align 8, !tbaa !14
  %229 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  %230 = load double, ptr %229, align 8, !tbaa !11
  %231 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 0
  store double %230, ptr %231, align 8, !tbaa !11
  %232 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  %233 = load double, ptr %232, align 8, !tbaa !14
  %234 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 1
  store double %233, ptr %234, align 8, !tbaa !14
  br label %235

235:                                              ; preds = %226, %162
  %236 = load i32, ptr %14, align 4, !tbaa !9
  %237 = sub nsw i32 %236, 1
  store i32 %237, ptr %12, align 4, !tbaa !9
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.doublecomplex, ptr %239, i64 1
  %241 = load ptr, ptr %9, align 8, !tbaa !5
  %242 = load i32, ptr %16, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %struct.doublecomplex, ptr %241, i64 %243
  call void @ztpmv_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef %238, ptr noundef %12, ptr noundef %240, ptr noundef %244, ptr noundef @c__1)
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = sub nsw i32 %245, 1
  store i32 %246, ptr %12, align 4, !tbaa !9
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  %248 = load i32, ptr %16, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds %struct.doublecomplex, ptr %247, i64 %249
  call void @zscal_(ptr noundef %12, ptr noundef %20, ptr noundef %250, ptr noundef @c__1)
  %251 = load i32, ptr %14, align 4, !tbaa !9
  %252 = load i32, ptr %16, align 4, !tbaa !9
  %253 = add nsw i32 %252, %251
  store i32 %253, ptr %16, align 4, !tbaa !9
  br label %254

254:                                              ; preds = %235
  %255 = load i32, ptr %14, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %14, align 4, !tbaa !9
  br label %155, !llvm.loop !18

257:                                              ; preds = %155
  br label %380

258:                                              ; preds = %149
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = load i32, ptr %259, align 4, !tbaa !9
  %261 = load ptr, ptr %8, align 8, !tbaa !5
  %262 = load i32, ptr %261, align 4, !tbaa !9
  %263 = add nsw i32 %262, 1
  %264 = mul nsw i32 %260, %263
  %265 = sdiv i32 %264, 2
  store i32 %265, ptr %16, align 4, !tbaa !9
  %266 = load ptr, ptr %8, align 8, !tbaa !5
  %267 = load i32, ptr %266, align 4, !tbaa !9
  store i32 %267, ptr %14, align 4, !tbaa !9
  br label %268

268:                                              ; preds = %376, %258
  %269 = load i32, ptr %14, align 4, !tbaa !9
  %270 = icmp sge i32 %269, 1
  br i1 %270, label %271, label %379

271:                                              ; preds = %268
  %272 = load i32, ptr %19, align 4, !tbaa !9
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %329

274:                                              ; preds = %271
  %275 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %275, ptr %11, align 4, !tbaa !9
  %276 = call { double, double } @Cd(ptr noundef @c_b1)
  %277 = extractvalue { double, double } %276, 0
  %278 = extractvalue { double, double } %276, 1
  %279 = load ptr, ptr %9, align 8, !tbaa !5
  %280 = load i32, ptr %16, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds %struct.doublecomplex, ptr %279, i64 %281
  %283 = call { double, double } @Cd(ptr noundef %282)
  %284 = extractvalue { double, double } %283, 0
  %285 = extractvalue { double, double } %283, 1
  %286 = call { double, double } @__divdc3(double noundef %277, double noundef %278, double noundef %284, double noundef %285) #4
  %287 = extractvalue { double, double } %286, 0
  %288 = extractvalue { double, double } %286, 1
  %289 = call ptr @_pCd(ptr noundef %13)
  %290 = getelementptr inbounds { double, double }, ptr %289, i32 0, i32 0
  %291 = getelementptr inbounds { double, double }, ptr %289, i32 0, i32 1
  store double %287, ptr %290, align 8
  store double %288, ptr %291, align 8
  %292 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  %293 = load double, ptr %292, align 8, !tbaa !11
  %294 = load ptr, ptr %9, align 8, !tbaa !5
  %295 = load i32, ptr %11, align 4, !tbaa !9
  %296 = sext i32 %295 to i64
  %297 = getelementptr inbounds %struct.doublecomplex, ptr %294, i64 %296
  %298 = getelementptr inbounds %struct.doublecomplex, ptr %297, i32 0, i32 0
  store double %293, ptr %298, align 8, !tbaa !11
  %299 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  %300 = load double, ptr %299, align 8, !tbaa !14
  %301 = load ptr, ptr %9, align 8, !tbaa !5
  %302 = load i32, ptr %11, 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 1
  store double %300, ptr %305, align 8, !tbaa !14
  %306 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %306, ptr %11, align 4, !tbaa !9
  %307 = load ptr, ptr %9, align 8, !tbaa !5
  %308 = load i32, ptr %11, align 4, !tbaa !9
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds %struct.doublecomplex, ptr %307, i64 %309
  %311 = getelementptr inbounds %struct.doublecomplex, ptr %310, i32 0, i32 0
  %312 = load double, ptr %311, align 8, !tbaa !11
  %313 = fneg double %312
  %314 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  store double %313, ptr %314, align 8, !tbaa !11
  %315 = load ptr, ptr %9, align 8, !tbaa !5
  %316 = load i32, ptr %11, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds %struct.doublecomplex, ptr %315, i64 %317
  %319 = getelementptr inbounds %struct.doublecomplex, ptr %318, i32 0, i32 1
  %320 = load double, ptr %319, align 8, !tbaa !14
  %321 = fneg double %320
  %322 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  store double %321, ptr %322, align 8, !tbaa !14
  %323 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  %324 = load double, ptr %323, align 8, !tbaa !11
  %325 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 0
  store double %324, ptr %325, align 8, !tbaa !11
  %326 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  %327 = load double, ptr %326, align 8, !tbaa !14
  %328 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 1
  store double %327, ptr %328, align 8, !tbaa !14
  br label %338

329:                                              ; preds = %271
  %330 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  store double -1.000000e+00, ptr %330, align 8, !tbaa !11
  %331 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  store double 0.000000e+00, ptr %331, align 8, !tbaa !14
  %332 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 0
  %333 = load double, ptr %332, align 8, !tbaa !11
  %334 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 0
  store double %333, ptr %334, align 8, !tbaa !11
  %335 = getelementptr inbounds %struct.doublecomplex, ptr %13, i32 0, i32 1
  %336 = load double, ptr %335, align 8, !tbaa !14
  %337 = getelementptr inbounds %struct.doublecomplex, ptr %20, i32 0, i32 1
  store double %336, ptr %337, align 8, !tbaa !14
  br label %338

338:                                              ; preds = %329, %274
  %339 = load i32, ptr %14, align 4, !tbaa !9
  %340 = load ptr, ptr %8, align 8, !tbaa !5
  %341 = load i32, ptr %340, align 4, !tbaa !9
  %342 = icmp slt i32 %339, %341
  br i1 %342, label %343, label %367

343:                                              ; preds = %338
  %344 = load ptr, ptr %8, align 8, !tbaa !5
  %345 = load i32, ptr %344, align 4, !tbaa !9
  %346 = load i32, ptr %14, align 4, !tbaa !9
  %347 = sub nsw i32 %345, %346
  store i32 %347, ptr %11, align 4, !tbaa !9
  %348 = load ptr, ptr %7, align 8, !tbaa !5
  %349 = load ptr, ptr %9, 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 = load ptr, ptr %9, align 8, !tbaa !5
  %354 = load i32, ptr %16, align 4, !tbaa !9
  %355 = add nsw i32 %354, 1
  %356 = sext i32 %355 to i64
  %357 = getelementptr inbounds %struct.doublecomplex, ptr %353, i64 %356
  call void @ztpmv_(ptr noundef @.str.6, ptr noundef @.str.5, ptr noundef %348, ptr noundef %11, ptr noundef %352, ptr noundef %357, ptr noundef @c__1)
  %358 = load ptr, ptr %8, align 8, !tbaa !5
  %359 = load i32, ptr %358, align 4, !tbaa !9
  %360 = load i32, ptr %14, align 4, !tbaa !9
  %361 = sub nsw i32 %359, %360
  store i32 %361, ptr %11, align 4, !tbaa !9
  %362 = load ptr, ptr %9, align 8, !tbaa !5
  %363 = load i32, ptr %16, align 4, !tbaa !9
  %364 = add nsw i32 %363, 1
  %365 = sext i32 %364 to i64
  %366 = getelementptr inbounds %struct.doublecomplex, ptr %362, i64 %365
  call void @zscal_(ptr noundef %11, ptr noundef %20, ptr noundef %366, ptr noundef @c__1)
  br label %367

367:                                              ; preds = %343, %338
  %368 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %368, ptr %18, align 4, !tbaa !9
  %369 = load i32, ptr %16, align 4, !tbaa !9
  %370 = load ptr, ptr %8, align 8, !tbaa !5
  %371 = load i32, ptr %370, align 4, !tbaa !9
  %372 = sub nsw i32 %369, %371
  %373 = load i32, ptr %14, align 4, !tbaa !9
  %374 = add nsw i32 %372, %373
  %375 = sub nsw i32 %374, 2
  store i32 %375, ptr %16, align 4, !tbaa !9
  br label %376

376:                                              ; preds = %367
  %377 = load i32, ptr %14, align 4, !tbaa !9
  %378 = add nsw i32 %377, -1
  store i32 %378, ptr %14, align 4, !tbaa !9
  br label %268, !llvm.loop !19

379:                                              ; preds = %268
  br label %380

380:                                              ; preds = %379, %257
  store i32 1, ptr %21, align 4
  br label %381

381:                                              ; preds = %380, %132, %99, %58
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  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

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

declare { double, double } @__divdc3(double, double, double, double)

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !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 [7 x i8], align 1
@c_b1 = external hidden global %struct.doublecomplex, align 8
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i32, align 4
@.str.6 = external hidden unnamed_addr constant [6 x i8], align 1

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

13:                                               ; preds = %5
  %14 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #4
  %.not100 = icmp eq i32 %14, 0
  br i1 %.not100, label %.thread.sink.split, label %15

15:                                               ; preds = %13, %5
  %.not101 = icmp eq i32 %12, 0
  br i1 %.not101, label %16, label %18

16:                                               ; preds = %15
  %17 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %.not102 = icmp eq i32 %17, 0
  br i1 %.not102, label %.thread.sink.split, label %18

18:                                               ; preds = %16, %15
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = icmp slt i32 %19, 0
  br i1 %20, label %.thread.sink.split, label %21

21:                                               ; preds = %18
  %.pr = load i32, ptr %4, align 4, !tbaa !5
  %.not103 = icmp eq i32 %.pr, 0
  br i1 %.not103, label %25, label %.thread

.thread.sink.split:                               ; preds = %18, %16, %13
  %.sink = phi i32 [ -1, %13 ], [ -2, %16 ], [ -3, %18 ]
  store i32 %.sink, ptr %4, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %21
  %22 = phi i32 [ %.pr, %21 ], [ %.sink, %.thread.sink.split ]
  %23 = sub nsw i32 0, %22
  store i32 %23, ptr %6, align 4, !tbaa !5
  %24 = call i32 @xerbla_(ptr noundef nonnull @.str.3, ptr noundef nonnull %6, i32 noundef 6) #4
  br label %.loopexit

25:                                               ; preds = %21
  br i1 %.not101, label %54, label %26

26:                                               ; preds = %25
  br i1 %.not, label %40, label %27

27:                                               ; preds = %26
  %.not107117 = icmp eq i32 %19, 0
  br i1 %.not107117, label %.loopexit111, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %27
  %28 = add nuw i32 %19, 1
  %wide.trip.count = zext i32 %28 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %39
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %39 ]
  %.092119 = phi i32 [ 0, %.lr.ph.preheader ], [ %30, %39 ]
  %29 = trunc nuw nsw i64 %indvars.iv to i32
  %30 = add nuw nsw i32 %.092119, %29
  %31 = zext nneg i32 %30 to i64
  %32 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %31
  %33 = load double, ptr %32, align 8, !tbaa !9
  %34 = fcmp oeq double %33, 0.000000e+00
  br i1 %34, label %35, label %39

35:                                               ; preds = %.lr.ph
  %36 = getelementptr inbounds i8, ptr %32, i64 8
  %37 = load double, ptr %36, align 8, !tbaa !12
  %38 = fcmp oeq double %37, 0.000000e+00
  br i1 %38, label %.loopexit114, label %39

39:                                               ; preds = %.lr.ph, %35
  %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 %.loopexit111, label %.lr.ph, !llvm.loop !13

40:                                               ; preds = %26
  store i32 1, ptr %4, align 4, !tbaa !5
  %.not105123 = icmp eq i32 %19, 0
  br i1 %.not105123, label %.loopexit111, label %.lr.ph126

.lr.ph126:                                        ; preds = %40, %49
  %.1125 = phi i32 [ %52, %49 ], [ 1, %40 ]
  %storemerge124 = phi i32 [ %53, %49 ], [ 1, %40 ]
  %41 = sext i32 %.1125 to i64
  %42 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %41
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = fcmp oeq double %43, 0.000000e+00
  br i1 %44, label %45, label %49

45:                                               ; preds = %.lr.ph126
  %46 = getelementptr inbounds i8, ptr %42, i64 8
  %47 = load double, ptr %46, align 8, !tbaa !12
  %48 = fcmp oeq double %47, 0.000000e+00
  br i1 %48, label %.loopexit, label %49

49:                                               ; preds = %45, %.lr.ph126
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %reass.sub = sub i32 %.1125, %storemerge124
  %51 = add i32 %reass.sub, 1
  %52 = add i32 %51, %50
  %53 = add nuw i32 %storemerge124, 1
  store i32 %53, ptr %4, align 4, !tbaa !5
  %exitcond144.not = icmp eq i32 %storemerge124, %19
  br i1 %exitcond144.not, label %.loopexit111, label %.lr.ph126, !llvm.loop !15

.loopexit111:                                     ; preds = %39, %49, %27, %40
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %.loopexit111, %25
  %55 = load i32, ptr %2, align 4, !tbaa !5
  br i1 %.not, label %93, label %56

56:                                               ; preds = %54
  store i32 %55, ptr %6, align 4, !tbaa !5
  %.not108128 = icmp slt i32 %55, 1
  br i1 %.not108128, label %.loopexit, label %.lr.ph131

.lr.ph131:                                        ; preds = %56
  br i1 %.not101, label %.lr.ph131.split.us, label %.lr.ph131.split

.lr.ph131.split.us:                               ; preds = %.lr.ph131, %.lr.ph131.split.us
  %indvars.iv148 = phi i64 [ %indvars.iv.next149, %.lr.ph131.split.us ], [ 1, %.lr.ph131 ]
  %.093130.us = phi i32 [ %62, %.lr.ph131.split.us ], [ 1, %.lr.ph131 ]
  store <2 x double> <double -1.000000e+00, double 0.000000e+00>, ptr %8, align 16, !tbaa !16
  store <2 x double> <double -1.000000e+00, double 0.000000e+00>, ptr %9, align 16, !tbaa !16
  %57 = trunc i64 %indvars.iv148 to i32
  %58 = add i32 %57, -1
  store i32 %58, ptr %7, align 4, !tbaa !5
  %59 = zext nneg i32 %.093130.us to i64
  %60 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %59
  call void @ztpmv_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %7, ptr noundef %3, ptr noundef nonnull %60, ptr noundef nonnull @c__1) #4
  store i32 %58, ptr %7, align 4, !tbaa !5
  call void @zscal_(ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %60, ptr noundef nonnull @c__1) #4
  %61 = trunc nuw nsw i64 %indvars.iv148 to i32
  %62 = add nuw nsw i32 %.093130.us, %61
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %.not108.us.not = icmp slt i64 %indvars.iv148, %64
  br i1 %.not108.us.not, label %.lr.ph131.split.us, label %.loopexit, !llvm.loop !17

.lr.ph131.split:                                  ; preds = %.lr.ph131, %.lr.ph131.split
  %indvars.iv145 = phi i64 [ %indvars.iv.next146, %.lr.ph131.split ], [ 1, %.lr.ph131 ]
  %.093130 = phi i32 [ %90, %.lr.ph131.split ], [ 1, %.lr.ph131 ]
  %65 = trunc i64 %indvars.iv145 to i32
  %66 = add i32 %65, -1
  %67 = add i32 %66, %.093130
  store i32 %67, ptr %7, align 4, !tbaa !5
  %68 = call { double, double } @Cd(ptr noundef nonnull @c_b1)
  %69 = extractvalue { double, double } %68, 0
  %70 = extractvalue { double, double } %68, 1
  %71 = sext i32 %67 to i64
  %72 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %71
  %73 = call { double, double } @Cd(ptr noundef nonnull %72)
  %74 = extractvalue { double, double } %73, 0
  %75 = extractvalue { double, double } %73, 1
  %76 = call { double, double } @__divdc3(double noundef %69, double noundef %70, double noundef %74, double noundef %75) #4
  %77 = extractvalue { double, double } %76, 0
  %78 = extractvalue { double, double } %76, 1
  %79 = call ptr @_pCd(ptr noundef nonnull %8)
  %80 = getelementptr inbounds i8, ptr %79, i64 8
  store double %77, ptr %79, align 8
  store double %78, ptr %80, align 8
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %82
  %84 = load <2 x double>, ptr %8, align 16, !tbaa !16
  store <2 x double> %84, ptr %83, align 8, !tbaa !16
  %85 = load <2 x double>, ptr %72, align 8, !tbaa !16
  %86 = fneg <2 x double> %85
  store <2 x double> %86, ptr %8, align 16, !tbaa !16
  store <2 x double> %86, ptr %9, align 16, !tbaa !16
  store i32 %66, ptr %7, align 4, !tbaa !5
  %87 = zext nneg i32 %.093130 to i64
  %88 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %87
  call void @ztpmv_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %7, ptr noundef %3, ptr noundef nonnull %88, ptr noundef nonnull @c__1) #4
  store i32 %66, ptr %7, align 4, !tbaa !5
  call void @zscal_(ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %88, ptr noundef nonnull @c__1) #4
  %89 = trunc nuw nsw i64 %indvars.iv145 to i32
  %90 = add nuw nsw i32 %.093130, %89
  %indvars.iv.next146 = add nuw nsw i64 %indvars.iv145, 1
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %.not108.not = icmp slt i64 %indvars.iv145, %92
  br i1 %.not108.not, label %.lr.ph131.split, label %.loopexit, !llvm.loop !17

93:                                               ; preds = %54
  %94 = icmp sgt i32 %55, 0
  br i1 %94, label %.lr.ph135, label %.loopexit

.lr.ph135:                                        ; preds = %93
  %95 = add nuw nsw i32 %55, 1
  %96 = mul nuw nsw i32 %95, %55
  %97 = lshr i32 %96, 1
  br label %98

98:                                               ; preds = %.lr.ph135, %131
  %99 = phi i32 [ %55, %.lr.ph135 ], [ %132, %131 ]
  %.0134 = phi i32 [ undef, %.lr.ph135 ], [ %.194133, %131 ]
  %.194133 = phi i32 [ %97, %.lr.ph135 ], [ %135, %131 ]
  %.196132 = phi i32 [ %55, %.lr.ph135 ], [ %136, %131 ]
  br i1 %.not101, label %120, label %100

100:                                              ; preds = %98
  store i32 %.194133, ptr %6, align 4, !tbaa !5
  %101 = call { double, double } @Cd(ptr noundef nonnull @c_b1)
  %102 = extractvalue { double, double } %101, 0
  %103 = extractvalue { double, double } %101, 1
  %104 = sext i32 %.194133 to i64
  %105 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %104
  %106 = call { double, double } @Cd(ptr noundef nonnull %105)
  %107 = extractvalue { double, double } %106, 0
  %108 = extractvalue { double, double } %106, 1
  %109 = call { double, double } @__divdc3(double noundef %102, double noundef %103, double noundef %107, double noundef %108) #4
  %110 = extractvalue { double, double } %109, 0
  %111 = extractvalue { double, double } %109, 1
  %112 = call ptr @_pCd(ptr noundef nonnull %8)
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  store double %110, ptr %112, align 8
  store double %111, ptr %113, align 8
  %114 = load i32, ptr %6, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %115
  %117 = load <2 x double>, ptr %8, align 16, !tbaa !16
  store <2 x double> %117, ptr %116, align 8, !tbaa !16
  store i32 %.194133, ptr %6, align 4, !tbaa !5
  %118 = load <2 x double>, ptr %105, align 8, !tbaa !16
  %119 = fneg <2 x double> %118
  store <2 x double> %119, ptr %8, align 16, !tbaa !16
  store <2 x double> %119, ptr %9, align 16, !tbaa !16
  %.pre = load i32, ptr %2, align 4, !tbaa !5
  br label %121

120:                                              ; preds = %98
  store <2 x double> <double -1.000000e+00, double 0.000000e+00>, ptr %8, align 16, !tbaa !16
  store <2 x double> <double -1.000000e+00, double 0.000000e+00>, ptr %9, align 16, !tbaa !16
  br label %121

121:                                              ; preds = %120, %100
  %122 = phi i32 [ %99, %120 ], [ %.pre, %100 ]
  %123 = icmp slt i32 %.196132, %122
  br i1 %123, label %124, label %131

124:                                              ; preds = %121
  %125 = sub nsw i32 %122, %.196132
  store i32 %125, ptr %6, align 4, !tbaa !5
  %126 = sext i32 %.0134 to i64
  %127 = getelementptr inbounds %struct.doublecomplex, ptr %10, i64 %126
  %128 = sext i32 %.194133 to i64
  %gep = getelementptr %struct.doublecomplex, ptr %3, i64 %128
  call void @ztpmv_(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.5, ptr noundef %1, ptr noundef nonnull %6, ptr noundef nonnull %127, ptr noundef %gep, ptr noundef nonnull @c__1) #4
  %129 = load i32, ptr %2, align 4, !tbaa !5
  %130 = sub nsw i32 %129, %.196132
  store i32 %130, ptr %6, align 4, !tbaa !5
  call void @zscal_(ptr noundef nonnull %6, ptr noundef nonnull %9, ptr noundef %gep, ptr noundef nonnull @c__1) #4
  %.pre151 = load i32, ptr %2, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %124, %121
  %132 = phi i32 [ %.pre151, %124 ], [ %122, %121 ]
  %133 = add nsw i32 %.196132, -2
  %134 = add i32 %133, %.194133
  %135 = sub i32 %134, %132
  %136 = add nsw i32 %.196132, -1
  %137 = icmp sgt i32 %.196132, 1
  br i1 %137, label %98, label %.loopexit, !llvm.loop !18

.loopexit114:                                     ; preds = %35
  store i32 %29, ptr %4, align 4, !tbaa !5
  br label %.loopexit

.loopexit:                                        ; preds = %45, %.lr.ph131.split, %.lr.ph131.split.us, %131, %56, %93, %.loopexit114, %.thread
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  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

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

declare { double, double } @__divdc3(double, double, double, double) local_unnamed_addr

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

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

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

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 = { 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 #4 = { nounwind }

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

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


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