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

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

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

56:                                               ; preds = %10
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = call i32 @lsame_(ptr noundef %57, ptr noundef @.str.1)
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %62, label %60

60:                                               ; preds = %56
  %61 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -1, ptr %61, align 4, !tbaa !9
  br label %93

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

66:                                               ; preds = %62
  %67 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -2, ptr %67, align 4, !tbaa !9
  br label %92

68:                                               ; preds = %62
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = icmp slt i32 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -3, ptr %73, align 4, !tbaa !9
  br label %91

74:                                               ; preds = %68
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = load i32, ptr %75, align 4, !tbaa !9
  %77 = load ptr, ptr %13, align 8, !tbaa !5
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = add nsw i32 %78, 1
  %80 = icmp slt i32 %76, %79
  br i1 %80, label %81, label %83

81:                                               ; preds = %74
  %82 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -5, ptr %82, align 4, !tbaa !9
  br label %90

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

87:                                               ; preds = %83
  %88 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -6, ptr %88, align 4, !tbaa !9
  br label %89

89:                                               ; preds = %87, %83
  br label %90

90:                                               ; preds = %89, %81
  br label %91

91:                                               ; preds = %90, %72
  br label %92

92:                                               ; preds = %91, %66
  br label %93

93:                                               ; preds = %92, %60
  %94 = load ptr, ptr %20, align 8, !tbaa !5
  %95 = load i32, ptr %94, align 4, !tbaa !9
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %102

97:                                               ; preds = %93
  %98 = load ptr, ptr %20, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = sub nsw i32 0, %99
  store i32 %100, ptr %23, align 4, !tbaa !9
  %101 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %23, i32 noundef 6)
  store i32 1, ptr %36, align 4
  br label %259

102:                                              ; preds = %93
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  store double 0.000000e+00, ptr %103, align 8, !tbaa !11
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %102
  %108 = load ptr, ptr %17, align 8, !tbaa !5
  store double 1.000000e+00, ptr %108, align 8, !tbaa !11
  store i32 1, ptr %36, align 4
  br label %259

109:                                              ; preds = %102
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = load double, ptr %110, align 8, !tbaa !11
  %112 = fcmp oeq double %111, 0.000000e+00
  br i1 %112, label %113, label %114

113:                                              ; preds = %109
  store i32 1, ptr %36, align 4
  br label %259

114:                                              ; preds = %109
  br label %115

115:                                              ; preds = %114
  %116 = call double @dlamch_(ptr noundef @.str.3)
  store double %116, ptr %35, align 8, !tbaa !11
  store i32 0, ptr %26, align 4, !tbaa !9
  %117 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 78, ptr %117, align 1, !tbaa !13
  br label %118

118:                                              ; preds = %246, %115
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load ptr, ptr %18, align 8, !tbaa !5
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load i32, ptr %121, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds %struct.doublecomplex, ptr %120, i64 %124
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.doublecomplex, ptr %126, i64 1
  %128 = getelementptr inbounds [3 x i32], ptr %28, i64 0, i64 0
  call void @zlacn2_(ptr noundef %119, ptr noundef %125, ptr noundef %127, ptr noundef %33, ptr noundef %26, ptr noundef %128)
  %129 = load i32, ptr %26, align 4, !tbaa !9
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %247

131:                                              ; preds = %118
  %132 = load i32, ptr %29, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %162

134:                                              ; preds = %131
  %135 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %136 = load ptr, ptr %12, align 8, !tbaa !5
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = load i32, ptr %22, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds %struct.doublecomplex, ptr %138, i64 %140
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load ptr, ptr %18, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.doublecomplex, ptr %143, i64 1
  %145 = load ptr, ptr %19, align 8, !tbaa !5
  %146 = getelementptr inbounds double, ptr %145, i64 1
  %147 = load ptr, ptr %20, align 8, !tbaa !5
  call void @zlatbs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %135, ptr noundef %136, ptr noundef %137, ptr noundef %141, ptr noundef %142, ptr noundef %144, ptr noundef %31, ptr noundef %146, ptr noundef %147)
  %148 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 89, ptr %148, align 1, !tbaa !13
  %149 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = load ptr, ptr %14, align 8, !tbaa !5
  %153 = load i32, ptr %22, align 4, !tbaa !9
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds %struct.doublecomplex, ptr %152, i64 %154
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.doublecomplex, ptr %157, i64 1
  %159 = load ptr, ptr %19, align 8, !tbaa !5
  %160 = getelementptr inbounds double, ptr %159, i64 1
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  call void @zlatbs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %149, ptr noundef %150, ptr noundef %151, ptr noundef %155, ptr noundef %156, ptr noundef %158, ptr noundef %32, ptr noundef %160, ptr noundef %161)
  br label %190

162:                                              ; preds = %131
  %163 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %164 = load ptr, ptr %12, align 8, !tbaa !5
  %165 = load ptr, ptr %13, align 8, !tbaa !5
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = load i32, ptr %22, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds %struct.doublecomplex, ptr %166, i64 %168
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.doublecomplex, ptr %171, i64 1
  %173 = load ptr, ptr %19, align 8, !tbaa !5
  %174 = getelementptr inbounds double, ptr %173, i64 1
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  call void @zlatbs_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %163, ptr noundef %164, ptr noundef %165, ptr noundef %169, ptr noundef %170, ptr noundef %172, ptr noundef %31, ptr noundef %174, ptr noundef %175)
  %176 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  store i8 89, ptr %176, align 1, !tbaa !13
  %177 = getelementptr inbounds [1 x i8], ptr %34, i64 0, i64 0
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  %179 = load ptr, ptr %13, align 8, !tbaa !5
  %180 = load ptr, ptr %14, align 8, !tbaa !5
  %181 = load i32, ptr %22, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds %struct.doublecomplex, ptr %180, i64 %182
  %184 = load ptr, ptr %15, align 8, !tbaa !5
  %185 = load ptr, ptr %18, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.doublecomplex, ptr %185, i64 1
  %187 = load ptr, ptr %19, align 8, !tbaa !5
  %188 = getelementptr inbounds double, ptr %187, i64 1
  %189 = load ptr, ptr %20, align 8, !tbaa !5
  call void @zlatbs_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %183, ptr noundef %184, ptr noundef %186, ptr noundef %32, ptr noundef %188, ptr noundef %189)
  br label %190

190:                                              ; preds = %162, %134
  %191 = load double, ptr %31, align 8, !tbaa !11
  %192 = load double, ptr %32, align 8, !tbaa !11
  %193 = fmul double %191, %192
  store double %193, ptr %27, align 8, !tbaa !11
  %194 = load double, ptr %27, align 8, !tbaa !11
  %195 = fcmp une double %194, 1.000000e+00
  br i1 %195, label %196, label %246

196:                                              ; preds = %190
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = load ptr, ptr %18, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %198, i64 1
  %200 = call i32 @izamax_(ptr noundef %197, ptr noundef %199, ptr noundef @c__1)
  store i32 %200, ptr %30, align 4, !tbaa !9
  %201 = load i32, ptr %30, align 4, !tbaa !9
  store i32 %201, ptr %23, align 4, !tbaa !9
  %202 = load double, ptr %27, align 8, !tbaa !11
  %203 = load ptr, ptr %18, align 8, !tbaa !5
  %204 = load i32, ptr %23, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds %struct.doublecomplex, ptr %203, i64 %205
  %207 = getelementptr inbounds %struct.doublecomplex, ptr %206, i32 0, i32 0
  %208 = load double, ptr %207, align 8, !tbaa !14
  store double %208, ptr %24, align 8, !tbaa !11
  %209 = load double, ptr %24, align 8, !tbaa !11
  %210 = fcmp oge double %209, 0.000000e+00
  br i1 %210, label %211, label %213

211:                                              ; preds = %196
  %212 = load double, ptr %24, align 8, !tbaa !11
  br label %216

213:                                              ; preds = %196
  %214 = load double, ptr %24, align 8, !tbaa !11
  %215 = fneg double %214
  br label %216

216:                                              ; preds = %213, %211
  %217 = phi double [ %212, %211 ], [ %215, %213 ]
  %218 = load ptr, ptr %18, align 8, !tbaa !5
  %219 = load i32, ptr %30, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds %struct.doublecomplex, ptr %218, i64 %220
  %222 = call { double, double } @Cd(ptr noundef %221)
  %223 = extractvalue { double, double } %222, 0
  %224 = extractvalue { double, double } %222, 1
  store double %224, ptr %25, align 8, !tbaa !11
  %225 = load double, ptr %25, align 8, !tbaa !11
  %226 = fcmp oge double %225, 0.000000e+00
  br i1 %226, label %227, label %229

227:                                              ; preds = %216
  %228 = load double, ptr %25, align 8, !tbaa !11
  br label %232

229:                                              ; preds = %216
  %230 = load double, ptr %25, align 8, !tbaa !11
  %231 = fneg double %230
  br label %232

232:                                              ; preds = %229, %227
  %233 = phi double [ %228, %227 ], [ %231, %229 ]
  %234 = fadd double %217, %233
  %235 = load double, ptr %35, align 8, !tbaa !11
  %236 = fmul double %234, %235
  %237 = fcmp olt double %202, %236
  br i1 %237, label %241, label %238

238:                                              ; preds = %232
  %239 = load double, ptr %27, align 8, !tbaa !11
  %240 = fcmp oeq double %239, 0.000000e+00
  br i1 %240, label %241, label %242

241:                                              ; preds = %238, %232
  br label %258

242:                                              ; preds = %238
  %243 = load ptr, ptr %12, align 8, !tbaa !5
  %244 = load ptr, ptr %18, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.doublecomplex, ptr %244, i64 1
  call void @zdrscl_(ptr noundef %243, ptr noundef %27, ptr noundef %245, ptr noundef @c__1)
  br label %246

246:                                              ; preds = %242, %190
  br label %118

247:                                              ; preds = %118
  %248 = load double, ptr %33, align 8, !tbaa !11
  %249 = fcmp une double %248, 0.000000e+00
  br i1 %249, label %250, label %257

250:                                              ; preds = %247
  %251 = load double, ptr %33, align 8, !tbaa !11
  %252 = fdiv double 1.000000e+00, %251
  %253 = load ptr, ptr %16, align 8, !tbaa !5
  %254 = load double, ptr %253, align 8, !tbaa !11
  %255 = fdiv double %252, %254
  %256 = load ptr, ptr %17, align 8, !tbaa !5
  store double %255, ptr %256, align 8, !tbaa !11
  br label %257

257:                                              ; preds = %250, %247
  br label %258

258:                                              ; preds = %257, %241
  store i32 1, ptr %36, align 4
  br label %259

259:                                              ; preds = %258, %113, %107, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 void @zlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @zlatbs_(ptr noundef, 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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !12, i64 0}
!15 = !{!"", !12, i64 0, !12, 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 [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @zpbcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %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 double, align 8
  %17 = alloca double, align 8
  %18 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #4
  %19 = getelementptr inbounds i8, ptr %7, i64 -16
  store i32 0, ptr %9, align 4, !tbaa !5
  %20 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %21, label %23

21:                                               ; preds = %10
  %22 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not82 = icmp eq i32 %22, 0
  br i1 %.not82, label %.thread.sink.split, label %23

23:                                               ; preds = %21, %10
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp slt i32 %24, 0
  br i1 %25, label %.thread.sink.split, label %26

26:                                               ; preds = %23
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 0
  br i1 %28, label %.thread.sink.split, label %29

29:                                               ; preds = %26
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %.not83 = icmp sgt i32 %30, %27
  br i1 %.not83, label %31, label %.thread.sink.split

31:                                               ; preds = %29
  %32 = load double, ptr %5, align 8, !tbaa !9
  %33 = fcmp olt double %32, 0.000000e+00
  br i1 %33, label %.thread.sink.split, label %34

34:                                               ; preds = %31
  %.pr = load i32, ptr %9, align 4, !tbaa !5
  %.not84 = icmp eq i32 %.pr, 0
  br i1 %.not84, label %38, label %.thread

.thread.sink.split:                               ; preds = %31, %29, %26, %23, %21
  %.sink = phi i32 [ -1, %21 ], [ -2, %23 ], [ -3, %26 ], [ -5, %29 ], [ -6, %31 ]
  store i32 %.sink, ptr %9, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %34
  %35 = phi i32 [ %.pr, %34 ], [ %.sink, %.thread.sink.split ]
  %36 = sub nsw i32 0, %35
  store i32 %36, ptr %11, align 4, !tbaa !5
  %37 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %11, i32 noundef 6) #4
  br label %.loopexit

38:                                               ; preds = %34
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  %39 = icmp eq i32 %24, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  store double 1.000000e+00, ptr %6, align 8, !tbaa !9
  br label %.loopexit

41:                                               ; preds = %38
  %42 = load double, ptr %5, align 8, !tbaa !9
  %43 = fcmp oeq double %42, 0.000000e+00
  br i1 %43, label %.loopexit, label %44

44:                                               ; preds = %41
  %45 = tail call double @dlamch_(ptr noundef nonnull @.str.3) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  store i8 78, ptr %18, align 1, !tbaa !11
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %gep87 = getelementptr %struct.doublecomplex, ptr %7, i64 %47
  call void @zlacn2_(ptr noundef nonnull %1, ptr noundef %gep87, ptr noundef %7, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #4
  %48 = load i32, ptr %12, align 4, !tbaa !5
  %.not8588 = icmp eq i32 %48, 0
  br i1 %.not8588, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %44, %76
  br i1 %.not, label %50, label %49

49:                                               ; preds = %.lr.ph
  call void @zlatbs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %8, ptr noundef nonnull %9) #4
  store i8 89, ptr %18, align 1, !tbaa !11
  call void @zlatbs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %16, ptr noundef %8, ptr noundef nonnull %9) #4
  br label %51

50:                                               ; preds = %.lr.ph
  call void @zlatbs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %15, ptr noundef %8, ptr noundef nonnull %9) #4
  store i8 89, ptr %18, align 1, !tbaa !11
  call void @zlatbs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %18, ptr noundef nonnull %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %16, ptr noundef %8, ptr noundef nonnull %9) #4
  br label %51

51:                                               ; preds = %50, %49
  %52 = load double, ptr %15, align 8, !tbaa !9
  %53 = load double, ptr %16, align 8, !tbaa !9
  %54 = fmul double %52, %53
  store double %54, ptr %13, align 8, !tbaa !9
  %55 = fcmp une double %54, 1.000000e+00
  br i1 %55, label %56, label %76

56:                                               ; preds = %51
  %57 = call i32 @izamax_(ptr noundef nonnull %1, ptr noundef %7, ptr noundef nonnull @c__1) #4
  %58 = load double, ptr %13, align 8, !tbaa !9
  %59 = sext i32 %57 to i64
  %60 = getelementptr inbounds %struct.doublecomplex, ptr %19, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !12
  %62 = call { double, double } @Cd(ptr noundef nonnull %60)
  %63 = extractvalue { double, double } %62, 1
  %64 = insertelement <2 x double> poison, double %61, i64 0
  %65 = insertelement <2 x double> %64, double %63, i64 1
  %66 = fcmp oge <2 x double> %65, zeroinitializer
  %67 = fneg <2 x double> %65
  %68 = select <2 x i1> %66, <2 x double> %65, <2 x double> %67
  %shift = shufflevector <2 x double> %68, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %69 = fadd <2 x double> %68, %shift
  %70 = extractelement <2 x double> %69, i64 0
  %71 = fmul double %45, %70
  %72 = fcmp olt double %58, %71
  %73 = load double, ptr %13, align 8
  %74 = fcmp oeq double %73, 0.000000e+00
  %or.cond = select i1 %72, i1 true, i1 %74
  br i1 %or.cond, label %.loopexit, label %75

75:                                               ; preds = %56
  call void @zdrscl_(ptr noundef nonnull %1, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #4
  br label %76

76:                                               ; preds = %75, %51
  %77 = load i32, ptr %1, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %gep = getelementptr %struct.doublecomplex, ptr %7, i64 %78
  call void @zlacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %7, ptr noundef nonnull %17, ptr noundef nonnull %12, ptr noundef nonnull %14) #4
  %79 = load i32, ptr %12, align 4, !tbaa !5
  %.not85 = icmp eq i32 %79, 0
  br i1 %.not85, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %76, %44
  %80 = load double, ptr %17, align 8, !tbaa !9
  %81 = fcmp une double %80, 0.000000e+00
  br i1 %81, label %82, label %.loopexit

82:                                               ; preds = %._crit_edge
  %83 = fdiv double 1.000000e+00, %80
  %84 = load double, ptr %5, align 8, !tbaa !9
  %85 = fdiv double %83, %84
  store double %85, ptr %6, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %56, %82, %._crit_edge, %41, %40, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #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

declare double @dlamch_(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 @zlatbs_(ptr noundef, 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

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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"", !10, i64 0, !10, 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