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

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

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

61:                                               ; preds = %10
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  %63 = call i32 @lsame_(ptr noundef %62, ptr noundef @.str.1)
  %64 = icmp ne i32 %63, 0
  br label %65

65:                                               ; preds = %61, %10
  %66 = phi i1 [ true, %10 ], [ %64, %61 ]
  %67 = zext i1 %66 to i32
  store i32 %67, ptr %35, align 4, !tbaa !9
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = call i32 @lsame_(ptr noundef %68, ptr noundef @.str.2)
  store i32 %69, ptr %38, align 4, !tbaa !9
  %70 = load i32, ptr %35, align 4, !tbaa !9
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %78, label %72

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

76:                                               ; preds = %72
  %77 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -1, ptr %77, align 4, !tbaa !9
  br label %121

78:                                               ; preds = %72, %65
  %79 = load i32, ptr %31, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %87, label %81

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

85:                                               ; preds = %81
  %86 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -2, ptr %86, align 4, !tbaa !9
  br label %120

87:                                               ; preds = %81, %78
  %88 = load i32, ptr %38, align 4, !tbaa !9
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %96, label %90

90:                                               ; preds = %87
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = call i32 @lsame_(ptr noundef %91, ptr noundef @.str)
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %96, label %94

94:                                               ; preds = %90
  %95 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -3, ptr %95, align 4, !tbaa !9
  br label %119

96:                                               ; preds = %90, %87
  %97 = load ptr, ptr %14, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = icmp slt i32 %98, 0
  br i1 %99, label %100, label %102

100:                                              ; preds = %96
  %101 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -4, ptr %101, align 4, !tbaa !9
  br label %118

102:                                              ; preds = %96
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = load i32, ptr %103, align 4, !tbaa !9
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = icmp sge i32 1, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %102
  br label %112

109:                                              ; preds = %102
  %110 = load ptr, ptr %14, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %109, %108
  %113 = phi i32 [ 1, %108 ], [ %111, %109 ]
  %114 = icmp slt i32 %104, %113
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  %116 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -6, ptr %116, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %115, %112
  br label %118

118:                                              ; preds = %117, %100
  br label %119

119:                                              ; preds = %118, %94
  br label %120

120:                                              ; preds = %119, %85
  br label %121

121:                                              ; preds = %120, %76
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %130

125:                                              ; preds = %121
  %126 = load ptr, ptr %20, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = sub nsw i32 0, %127
  store i32 %128, ptr %23, align 4, !tbaa !9
  %129 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %23, i32 noundef 6)
  store i32 1, ptr %39, align 4
  br label %287

130:                                              ; preds = %121
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %136

134:                                              ; preds = %130
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  store double 1.000000e+00, ptr %135, align 8, !tbaa !12
  store i32 1, ptr %39, align 4
  br label %287

136:                                              ; preds = %130
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  store double 0.000000e+00, ptr %137, align 8, !tbaa !12
  %138 = call double @dlamch_(ptr noundef @.str.6)
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = icmp sge i32 1, %140
  br i1 %141, label %142, label %143

142:                                              ; preds = %136
  br label %146

143:                                              ; preds = %136
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %143, %142
  %147 = phi i32 [ 1, %142 ], [ %145, %143 ]
  %148 = sitofp i32 %147 to double
  %149 = fmul double %138, %148
  store double %149, ptr %37, align 8, !tbaa !12
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = load i32, ptr %22, align 4, !tbaa !9
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds %struct.doublecomplex, ptr %155, i64 %157
  %159 = load ptr, ptr %16, align 8, !tbaa !5
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %160, i64 1
  %162 = call double @zlantr_(ptr noundef %150, ptr noundef %151, ptr noundef %152, ptr noundef %153, ptr noundef %154, ptr noundef %158, ptr noundef %159, ptr noundef %161)
  store double %162, ptr %30, align 8, !tbaa !12
  %163 = load double, ptr %30, align 8, !tbaa !12
  %164 = fcmp ogt double %163, 0.000000e+00
  br i1 %164, label %165, label %285

165:                                              ; preds = %146
  store double 0.000000e+00, ptr %34, align 8, !tbaa !12
  %166 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  store i8 78, ptr %166, align 1, !tbaa !11
  %167 = load i32, ptr %35, align 4, !tbaa !9
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %169, label %170

169:                                              ; preds = %165
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %171

170:                                              ; preds = %165
  store i32 2, ptr %27, align 4, !tbaa !9
  br label %171

171:                                              ; preds = %170, %169
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %274, %171
  %173 = load ptr, ptr %14, align 8, !tbaa !5
  %174 = load ptr, ptr %18, align 8, !tbaa !5
  %175 = load ptr, ptr %14, align 8, !tbaa !5
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = add nsw i32 %176, 1
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds %struct.doublecomplex, ptr %174, i64 %178
  %180 = load ptr, ptr %18, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.doublecomplex, ptr %180, i64 1
  %182 = getelementptr inbounds [3 x i32], ptr %29, i64 0, i64 0
  call void @zlacn2_(ptr noundef %173, ptr noundef %179, ptr noundef %181, ptr noundef %34, ptr noundef %26, ptr noundef %182)
  %183 = load i32, ptr %26, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %275

185:                                              ; preds = %172
  %186 = load i32, ptr %26, align 4, !tbaa !9
  %187 = load i32, ptr %27, align 4, !tbaa !9
  %188 = icmp eq i32 %186, %187
  br i1 %188, label %189, label %204

189:                                              ; preds = %185
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  %194 = load ptr, ptr %15, align 8, !tbaa !5
  %195 = load i32, ptr %22, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds %struct.doublecomplex, ptr %194, i64 %196
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = load ptr, ptr %18, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.doublecomplex, ptr %199, i64 1
  %201 = load ptr, ptr %19, align 8, !tbaa !5
  %202 = getelementptr inbounds double, ptr %201, i64 1
  %203 = load ptr, ptr %20, align 8, !tbaa !5
  call void @zlatrs_(ptr noundef %190, ptr noundef @.str.7, ptr noundef %191, ptr noundef %192, ptr noundef %193, ptr noundef %197, ptr noundef %198, ptr noundef %200, ptr noundef %28, ptr noundef %202, ptr noundef %203)
  br label %219

204:                                              ; preds = %185
  %205 = load ptr, ptr %12, align 8, !tbaa !5
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = load ptr, ptr %15, align 8, !tbaa !5
  %210 = load i32, ptr %22, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds %struct.doublecomplex, ptr %209, i64 %211
  %213 = load ptr, ptr %16, align 8, !tbaa !5
  %214 = load ptr, ptr %18, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.doublecomplex, ptr %214, i64 1
  %216 = load ptr, ptr %19, align 8, !tbaa !5
  %217 = getelementptr inbounds double, ptr %216, i64 1
  %218 = load ptr, ptr %20, align 8, !tbaa !5
  call void @zlatrs_(ptr noundef %205, ptr noundef @.str.8, ptr noundef %206, ptr noundef %207, ptr noundef %208, ptr noundef %212, ptr noundef %213, ptr noundef %215, ptr noundef %28, ptr noundef %217, ptr noundef %218)
  br label %219

219:                                              ; preds = %204, %189
  %220 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  store i8 89, ptr %220, align 1, !tbaa !11
  %221 = load double, ptr %28, align 8, !tbaa !12
  %222 = fcmp une double %221, 1.000000e+00
  br i1 %222, label %223, label %274

223:                                              ; preds = %219
  %224 = load ptr, ptr %14, align 8, !tbaa !5
  %225 = load ptr, ptr %18, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.doublecomplex, ptr %225, i64 1
  %227 = call i32 @izamax_(ptr noundef %224, ptr noundef %226, ptr noundef @c__1)
  store i32 %227, ptr %33, align 4, !tbaa !9
  %228 = load i32, ptr %33, align 4, !tbaa !9
  store i32 %228, ptr %23, align 4, !tbaa !9
  %229 = load ptr, ptr %18, align 8, !tbaa !5
  %230 = load i32, ptr %23, align 4, !tbaa !9
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds %struct.doublecomplex, ptr %229, i64 %231
  %233 = getelementptr inbounds %struct.doublecomplex, ptr %232, i32 0, i32 0
  %234 = load double, ptr %233, align 8, !tbaa !14
  store double %234, ptr %24, align 8, !tbaa !12
  %235 = load double, ptr %24, align 8, !tbaa !12
  %236 = fcmp oge double %235, 0.000000e+00
  br i1 %236, label %237, label %239

237:                                              ; preds = %223
  %238 = load double, ptr %24, align 8, !tbaa !12
  br label %242

239:                                              ; preds = %223
  %240 = load double, ptr %24, align 8, !tbaa !12
  %241 = fneg double %240
  br label %242

242:                                              ; preds = %239, %237
  %243 = phi double [ %238, %237 ], [ %241, %239 ]
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  %245 = load i32, ptr %33, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds %struct.doublecomplex, ptr %244, i64 %246
  %248 = call { double, double } @Cd(ptr noundef %247)
  %249 = extractvalue { double, double } %248, 0
  %250 = extractvalue { double, double } %248, 1
  store double %250, ptr %25, align 8, !tbaa !12
  %251 = load double, ptr %25, align 8, !tbaa !12
  %252 = fcmp oge double %251, 0.000000e+00
  br i1 %252, label %253, label %255

253:                                              ; preds = %242
  %254 = load double, ptr %25, align 8, !tbaa !12
  br label %258

255:                                              ; preds = %242
  %256 = load double, ptr %25, align 8, !tbaa !12
  %257 = fneg double %256
  br label %258

258:                                              ; preds = %255, %253
  %259 = phi double [ %254, %253 ], [ %257, %255 ]
  %260 = fadd double %243, %259
  store double %260, ptr %32, align 8, !tbaa !12
  %261 = load double, ptr %28, align 8, !tbaa !12
  %262 = load double, ptr %32, align 8, !tbaa !12
  %263 = load double, ptr %37, align 8, !tbaa !12
  %264 = fmul double %262, %263
  %265 = fcmp olt double %261, %264
  br i1 %265, label %269, label %266

266:                                              ; preds = %258
  %267 = load double, ptr %28, align 8, !tbaa !12
  %268 = fcmp oeq double %267, 0.000000e+00
  br i1 %268, label %269, label %270

269:                                              ; preds = %266, %258
  br label %286

270:                                              ; preds = %266
  %271 = load ptr, ptr %14, align 8, !tbaa !5
  %272 = load ptr, ptr %18, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.doublecomplex, ptr %272, i64 1
  call void @zdrscl_(ptr noundef %271, ptr noundef %28, ptr noundef %273, ptr noundef @c__1)
  br label %274

274:                                              ; preds = %270, %219
  br label %172

275:                                              ; preds = %172
  %276 = load double, ptr %34, align 8, !tbaa !12
  %277 = fcmp une double %276, 0.000000e+00
  br i1 %277, label %278, label %284

278:                                              ; preds = %275
  %279 = load double, ptr %30, align 8, !tbaa !12
  %280 = fdiv double 1.000000e+00, %279
  %281 = load double, ptr %34, align 8, !tbaa !12
  %282 = fdiv double %280, %281
  %283 = load ptr, ptr %17, align 8, !tbaa !5
  store double %282, ptr %283, align 8, !tbaa !12
  br label %284

284:                                              ; preds = %278, %275
  br label %285

285:                                              ; preds = %284, %146
  br label %286

286:                                              ; preds = %285, %269
  store i32 1, ptr %39, align 4
  br label %287

287:                                              ; preds = %286, %134, %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #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

declare double @dlamch_(ptr noundef) #2

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

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

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

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

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

declare void @zdrscl_(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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"", !13, i64 0, !13, i64 8}


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

; Function Attrs: nounwind uwtable
define dso_local void @ztrcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef writeonly %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #0 {
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca [3 x i32], align 4
  %15 = alloca double, align 8
  %16 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  %17 = getelementptr inbounds i8, ptr %7, i64 -16
  store i32 0, ptr %9, align 4, !tbaa !5
  %18 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #5
  %19 = load i8, ptr %0, align 1, !tbaa !9
  %20 = icmp eq i8 %19, 49
  br i1 %20, label %.thread, label %22

.thread:                                          ; preds = %10
  %21 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #5
  br label %27

22:                                               ; preds = %10
  %23 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #5
  %.not100 = icmp eq i32 %23, 0
  %24 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #5
  br i1 %.not100, label %25, label %27

25:                                               ; preds = %22
  %26 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #5
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %.thread98.sink.split, label %27

27:                                               ; preds = %.thread, %25, %22
  %28 = phi i32 [ %21, %.thread ], [ %24, %25 ], [ %24, %22 ]
  %. = phi i32 [ 1, %.thread ], [ 2, %25 ], [ 1, %22 ]
  %.not91 = icmp eq i32 %18, 0
  br i1 %.not91, label %29, label %31

29:                                               ; preds = %27
  %30 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #5
  %.not92 = icmp eq i32 %30, 0
  br i1 %.not92, label %.thread98.sink.split, label %31

31:                                               ; preds = %29, %27
  %.not93 = icmp eq i32 %28, 0
  br i1 %.not93, label %32, label %34

32:                                               ; preds = %31
  %33 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #5
  %.not94 = icmp eq i32 %33, 0
  br i1 %.not94, label %.thread98.sink.split, label %34

34:                                               ; preds = %32, %31
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = icmp slt i32 %35, 0
  br i1 %36, label %.thread98.sink.split, label %37

37:                                               ; preds = %34
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %35, i32 1)
  %39 = icmp slt i32 %38, %spec.select
  br i1 %39, label %.thread98.sink.split, label %40

40:                                               ; preds = %37
  %.pr = load i32, ptr %9, align 4, !tbaa !5
  %.not95 = icmp eq i32 %.pr, 0
  br i1 %.not95, label %44, label %.thread98

.thread98.sink.split:                             ; preds = %37, %34, %32, %29, %25
  %.sink = phi i32 [ -1, %25 ], [ -2, %29 ], [ -3, %32 ], [ -4, %34 ], [ -6, %37 ]
  store i32 %.sink, ptr %9, align 4, !tbaa !5
  br label %.thread98

.thread98:                                        ; preds = %.thread98.sink.split, %40
  %41 = phi i32 [ %.pr, %40 ], [ %.sink, %.thread98.sink.split ]
  %42 = sub nsw i32 0, %41
  store i32 %42, ptr %11, align 4, !tbaa !5
  %43 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %11, i32 noundef 6) #5
  br label %.loopexit

44:                                               ; preds = %40
  %45 = icmp eq i32 %35, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %44
  store double 1.000000e+00, ptr %6, align 8, !tbaa !10
  br label %.loopexit

47:                                               ; preds = %44
  store double 0.000000e+00, ptr %6, align 8, !tbaa !10
  %48 = tail call double @dlamch_(ptr noundef nonnull @.str.6) #5
  %49 = load i32, ptr %3, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 2
  %51 = uitofp nneg i32 %49 to double
  %52 = select i1 %50, double 1.000000e+00, double %51
  %53 = fmul double %48, %52
  %54 = tail call double @zlantr_(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %8) #5
  %55 = fcmp ogt double %54, 0.000000e+00
  br i1 %55, label %56, label %.loopexit

56:                                               ; preds = %47
  store double 0.000000e+00, ptr %15, align 8, !tbaa !10
  store i8 78, ptr %16, align 1, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !5
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %gep101 = getelementptr %struct.doublecomplex, ptr %7, i64 %58
  call void @zlacn2_(ptr noundef nonnull %3, ptr noundef %gep101, ptr noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %12, ptr noundef nonnull %14) #5
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %.not96102 = icmp eq i32 %59, 0
  br i1 %.not96102, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %56, %83
  %60 = phi i32 [ %86, %83 ], [ %59, %56 ]
  %61 = icmp eq i32 %60, %.
  %.str.7..str.8 = select i1 %61, ptr @.str.7, ptr @.str.8
  call void @zlatrs_(ptr noundef %1, ptr noundef nonnull %.str.7..str.8, ptr noundef %2, ptr noundef nonnull %16, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %7, ptr noundef nonnull %13, ptr noundef %8, ptr noundef nonnull %9) #5
  store i8 89, ptr %16, align 1, !tbaa !9
  %62 = load double, ptr %13, align 8, !tbaa !10
  %63 = fcmp une double %62, 1.000000e+00
  br i1 %63, label %64, label %83

64:                                               ; preds = %.lr.ph
  %65 = call i32 @izamax_(ptr noundef nonnull %3, ptr noundef %7, ptr noundef nonnull @c__1) #5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds %struct.doublecomplex, ptr %17, i64 %66
  %68 = load double, ptr %67, align 8, !tbaa !12
  %69 = call { double, double } @Cd(ptr noundef nonnull %67)
  %70 = extractvalue { double, double } %69, 1
  %71 = insertelement <2 x double> poison, double %68, i64 0
  %72 = insertelement <2 x double> %71, double %70, i64 1
  %73 = fcmp oge <2 x double> %72, zeroinitializer
  %74 = fneg <2 x double> %72
  %75 = select <2 x i1> %73, <2 x double> %72, <2 x double> %74
  %shift = shufflevector <2 x double> %75, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %76 = fadd <2 x double> %75, %shift
  %77 = extractelement <2 x double> %76, i64 0
  %78 = load double, ptr %13, align 8
  %79 = fmul double %53, %77
  %80 = fcmp olt double %78, %79
  %81 = fcmp oeq double %78, 0.000000e+00
  %or.cond = or i1 %81, %80
  br i1 %or.cond, label %.loopexit, label %82

82:                                               ; preds = %64
  call void @zdrscl_(ptr noundef nonnull %3, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #5
  br label %83

83:                                               ; preds = %82, %.lr.ph
  %84 = load i32, ptr %3, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %gep = getelementptr %struct.doublecomplex, ptr %7, i64 %85
  call void @zlacn2_(ptr noundef nonnull %3, ptr noundef %gep, ptr noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %12, ptr noundef nonnull %14) #5
  %86 = load i32, ptr %12, align 4, !tbaa !5
  %.not96 = icmp eq i32 %86, 0
  br i1 %.not96, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %83, %56
  %87 = load double, ptr %15, align 8, !tbaa !10
  %88 = fcmp une double %87, 0.000000e+00
  br i1 %88, label %89, label %.loopexit

89:                                               ; preds = %._crit_edge
  %90 = fdiv double 1.000000e+00, %54
  %91 = fdiv double %90, %87
  store double %91, ptr %6, align 8, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %64, %._crit_edge, %89, %47, %46, %.thread98
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  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 double @dlamch_(ptr noundef) local_unnamed_addr #2

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

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

declare void @zlatrs_(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 i32 @izamax_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @zdrscl_(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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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


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