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

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

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

58:                                               ; preds = %54
  %59 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -1, ptr %59, align 4, !tbaa !9
  br label %90

60:                                               ; preds = %54, %9
  %61 = load ptr, ptr %11, align 8, !tbaa !5
  %62 = load i32, ptr %61, align 4, !tbaa !9
  %63 = icmp slt i32 %62, 0
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -2, ptr %65, align 4, !tbaa !9
  br label %89

66:                                               ; preds = %60
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = icmp sge i32 1, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %66
  br label %76

73:                                               ; preds = %66
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = load i32, ptr %74, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %73, %72
  %77 = phi i32 [ 1, %72 ], [ %75, %73 ]
  %78 = icmp slt i32 %68, %77
  br i1 %78, label %79, label %81

79:                                               ; preds = %76
  %80 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -4, ptr %80, align 4, !tbaa !9
  br label %88

81:                                               ; preds = %76
  %82 = load ptr, ptr %14, align 8, !tbaa !5
  %83 = load double, ptr %82, align 8, !tbaa !11
  %84 = fcmp olt double %83, 0.000000e+00
  br i1 %84, label %85, label %87

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

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

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

89:                                               ; preds = %88, %64
  br label %90

90:                                               ; preds = %89, %58
  %91 = load ptr, ptr %18, align 8, !tbaa !5
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %99

94:                                               ; preds = %90
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = sub nsw i32 0, %96
  store i32 %97, ptr %21, align 4, !tbaa !9
  %98 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %21, i32 noundef 6)
  store i32 1, ptr %34, align 4
  br label %252

99:                                               ; preds = %90
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  store double 0.000000e+00, ptr %100, align 8, !tbaa !11
  %101 = load ptr, ptr %11, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %106

104:                                              ; preds = %99
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  store double 1.000000e+00, ptr %105, align 8, !tbaa !11
  store i32 1, ptr %34, align 4
  br label %252

106:                                              ; preds = %99
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = fcmp oeq double %108, 0.000000e+00
  br i1 %109, label %110, label %111

110:                                              ; preds = %106
  store i32 1, ptr %34, align 4
  br label %252

111:                                              ; preds = %106
  br label %112

112:                                              ; preds = %111
  %113 = call double @dlamch_(ptr noundef @.str.3)
  store double %113, ptr %33, align 8, !tbaa !11
  store i32 0, ptr %24, align 4, !tbaa !9
  %114 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 78, ptr %114, align 1, !tbaa !13
  br label %115

115:                                              ; preds = %239, %112
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds %struct.doublecomplex, ptr %117, i64 %121
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.doublecomplex, ptr %123, i64 1
  %125 = getelementptr inbounds [3 x i32], ptr %26, i64 0, i64 0
  call void @zlacn2_(ptr noundef %116, ptr noundef %122, ptr noundef %124, ptr noundef %31, ptr noundef %24, ptr noundef %125)
  %126 = load i32, ptr %24, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %240

128:                                              ; preds = %115
  %129 = load i32, ptr %27, align 4, !tbaa !9
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %157

131:                                              ; preds = %128
  %132 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = load i32, ptr %20, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds %struct.doublecomplex, ptr %134, i64 %136
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = load ptr, ptr %16, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.doublecomplex, ptr %139, i64 1
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = getelementptr inbounds double, ptr %141, i64 1
  %143 = load ptr, ptr %18, align 8, !tbaa !5
  call void @zlatrs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %132, ptr noundef %133, ptr noundef %137, ptr noundef %138, ptr noundef %140, ptr noundef %29, ptr noundef %142, ptr noundef %143)
  %144 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %144, align 1, !tbaa !13
  %145 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = load i32, ptr %20, align 4, !tbaa !9
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds %struct.doublecomplex, ptr %147, i64 %149
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = load ptr, ptr %16, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.doublecomplex, ptr %152, i64 1
  %154 = load ptr, ptr %17, align 8, !tbaa !5
  %155 = getelementptr inbounds double, ptr %154, i64 1
  %156 = load ptr, ptr %18, align 8, !tbaa !5
  call void @zlatrs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %145, ptr noundef %146, ptr noundef %150, ptr noundef %151, ptr noundef %153, ptr noundef %30, ptr noundef %155, ptr noundef %156)
  br label %183

157:                                              ; preds = %128
  %158 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = load i32, ptr %20, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds %struct.doublecomplex, ptr %160, i64 %162
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = load ptr, ptr %16, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.doublecomplex, ptr %165, i64 1
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = getelementptr inbounds double, ptr %167, i64 1
  %169 = load ptr, ptr %18, align 8, !tbaa !5
  call void @zlatrs_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %158, ptr noundef %159, ptr noundef %163, ptr noundef %164, ptr noundef %166, ptr noundef %29, ptr noundef %168, ptr noundef %169)
  %170 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %170, align 1, !tbaa !13
  %171 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = load i32, ptr %20, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds %struct.doublecomplex, ptr %173, i64 %175
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.doublecomplex, ptr %178, i64 1
  %180 = load ptr, ptr %17, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %180, i64 1
  %182 = load ptr, ptr %18, align 8, !tbaa !5
  call void @zlatrs_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %171, ptr noundef %172, ptr noundef %176, ptr noundef %177, ptr noundef %179, ptr noundef %30, ptr noundef %181, ptr noundef %182)
  br label %183

183:                                              ; preds = %157, %131
  %184 = load double, ptr %29, align 8, !tbaa !11
  %185 = load double, ptr %30, align 8, !tbaa !11
  %186 = fmul double %184, %185
  store double %186, ptr %25, align 8, !tbaa !11
  %187 = load double, ptr %25, align 8, !tbaa !11
  %188 = fcmp une double %187, 1.000000e+00
  br i1 %188, label %189, label %239

189:                                              ; preds = %183
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = load ptr, ptr %16, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.doublecomplex, ptr %191, i64 1
  %193 = call i32 @izamax_(ptr noundef %190, ptr noundef %192, ptr noundef @c__1)
  store i32 %193, ptr %28, align 4, !tbaa !9
  %194 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %194, ptr %21, align 4, !tbaa !9
  %195 = load double, ptr %25, align 8, !tbaa !11
  %196 = load ptr, ptr %16, align 8, !tbaa !5
  %197 = load i32, ptr %21, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds %struct.doublecomplex, ptr %196, i64 %198
  %200 = getelementptr inbounds %struct.doublecomplex, ptr %199, i32 0, i32 0
  %201 = load double, ptr %200, align 8, !tbaa !14
  store double %201, ptr %22, align 8, !tbaa !11
  %202 = load double, ptr %22, align 8, !tbaa !11
  %203 = fcmp oge double %202, 0.000000e+00
  br i1 %203, label %204, label %206

204:                                              ; preds = %189
  %205 = load double, ptr %22, align 8, !tbaa !11
  br label %209

206:                                              ; preds = %189
  %207 = load double, ptr %22, align 8, !tbaa !11
  %208 = fneg double %207
  br label %209

209:                                              ; preds = %206, %204
  %210 = phi double [ %205, %204 ], [ %208, %206 ]
  %211 = load ptr, ptr %16, align 8, !tbaa !5
  %212 = load i32, ptr %28, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds %struct.doublecomplex, ptr %211, i64 %213
  %215 = call { double, double } @Cd(ptr noundef %214)
  %216 = extractvalue { double, double } %215, 0
  %217 = extractvalue { double, double } %215, 1
  store double %217, ptr %23, align 8, !tbaa !11
  %218 = load double, ptr %23, align 8, !tbaa !11
  %219 = fcmp oge double %218, 0.000000e+00
  br i1 %219, label %220, label %222

220:                                              ; preds = %209
  %221 = load double, ptr %23, align 8, !tbaa !11
  br label %225

222:                                              ; preds = %209
  %223 = load double, ptr %23, align 8, !tbaa !11
  %224 = fneg double %223
  br label %225

225:                                              ; preds = %222, %220
  %226 = phi double [ %221, %220 ], [ %224, %222 ]
  %227 = fadd double %210, %226
  %228 = load double, ptr %33, align 8, !tbaa !11
  %229 = fmul double %227, %228
  %230 = fcmp olt double %195, %229
  br i1 %230, label %234, label %231

231:                                              ; preds = %225
  %232 = load double, ptr %25, align 8, !tbaa !11
  %233 = fcmp oeq double %232, 0.000000e+00
  br i1 %233, label %234, label %235

234:                                              ; preds = %231, %225
  br label %251

235:                                              ; preds = %231
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = load ptr, ptr %16, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.doublecomplex, ptr %237, i64 1
  call void @zdrscl_(ptr noundef %236, ptr noundef %25, ptr noundef %238, ptr noundef @c__1)
  br label %239

239:                                              ; preds = %235, %183
  br label %115

240:                                              ; preds = %115
  %241 = load double, ptr %31, align 8, !tbaa !11
  %242 = fcmp une double %241, 0.000000e+00
  br i1 %242, label %243, label %250

243:                                              ; preds = %240
  %244 = load double, ptr %31, align 8, !tbaa !11
  %245 = fdiv double 1.000000e+00, %244
  %246 = load ptr, ptr %14, align 8, !tbaa !5
  %247 = load double, ptr %246, align 8, !tbaa !11
  %248 = fdiv double %245, %247
  %249 = load ptr, ptr %15, align 8, !tbaa !5
  store double %248, ptr %249, align 8, !tbaa !11
  br label %250

250:                                              ; preds = %243, %240
  br label %251

251:                                              ; preds = %250, %234
  store i32 1, ptr %34, align 4
  br label %252

252:                                              ; preds = %251, %110, %104, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #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 @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 = !{!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 @zpocon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef writeonly %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca [3 x i32], align 4
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #5
  %18 = getelementptr inbounds i8, ptr %6, i64 -16
  store i32 0, ptr %8, align 4, !tbaa !5
  %19 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #5
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %20, label %22

20:                                               ; preds = %9
  %21 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #5
  %.not77 = icmp eq i32 %21, 0
  br i1 %.not77, label %.thread.sink.split, label %22

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

25:                                               ; preds = %22
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %23, i32 1)
  %27 = icmp slt i32 %26, %spec.select
  br i1 %27, label %.thread.sink.split, label %28

28:                                               ; preds = %25
  %29 = load double, ptr %4, align 8, !tbaa !9
  %30 = fcmp olt double %29, 0.000000e+00
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %28
  %.pr = load i32, ptr %8, align 4, !tbaa !5
  %.not78 = icmp eq i32 %.pr, 0
  br i1 %.not78, label %35, label %.thread

.thread.sink.split:                               ; preds = %28, %25, %22, %20
  %.sink = phi i32 [ -1, %20 ], [ -2, %22 ], [ -4, %25 ], [ -5, %28 ]
  store i32 %.sink, ptr %8, align 4, !tbaa !5
  br label %.thread

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

35:                                               ; preds = %31
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  %36 = icmp eq i32 %23, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  store double 1.000000e+00, ptr %5, align 8, !tbaa !9
  br label %.loopexit

38:                                               ; preds = %35
  %39 = load double, ptr %4, align 8, !tbaa !9
  %40 = fcmp oeq double %39, 0.000000e+00
  br i1 %40, label %.loopexit, label %41

41:                                               ; preds = %38
  %42 = tail call double @dlamch_(ptr noundef nonnull @.str.3) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  store i8 78, ptr %17, align 1, !tbaa !11
  %43 = load i32, ptr %1, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %gep81 = getelementptr %struct.doublecomplex, ptr %6, i64 %44
  call void @zlacn2_(ptr noundef nonnull %1, ptr noundef %gep81, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #5
  %45 = load i32, ptr %11, align 4, !tbaa !5
  %.not7982 = icmp eq i32 %45, 0
  br i1 %.not7982, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %41, %73
  br i1 %.not, label %47, label %46

46:                                               ; preds = %.lr.ph
  call void @zlatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %14, ptr noundef %7, ptr noundef nonnull %8) #5
  store i8 89, ptr %17, align 1, !tbaa !11
  call void @zlatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %15, ptr noundef %7, ptr noundef nonnull %8) #5
  br label %48

47:                                               ; preds = %.lr.ph
  call void @zlatrs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %14, ptr noundef %7, ptr noundef nonnull %8) #5
  store i8 89, ptr %17, align 1, !tbaa !11
  call void @zlatrs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %15, ptr noundef %7, ptr noundef nonnull %8) #5
  br label %48

48:                                               ; preds = %47, %46
  %49 = load double, ptr %14, align 8, !tbaa !9
  %50 = load double, ptr %15, align 8, !tbaa !9
  %51 = fmul double %49, %50
  store double %51, ptr %12, align 8, !tbaa !9
  %52 = fcmp une double %51, 1.000000e+00
  br i1 %52, label %53, label %73

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

72:                                               ; preds = %53
  call void @zdrscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #5
  br label %73

73:                                               ; preds = %72, %48
  %74 = load i32, ptr %1, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %gep = getelementptr %struct.doublecomplex, ptr %6, i64 %75
  call void @zlacn2_(ptr noundef nonnull %1, ptr noundef %gep, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #5
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %.not79 = icmp eq i32 %76, 0
  br i1 %.not79, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %73, %41
  %77 = load double, ptr %16, align 8, !tbaa !9
  %78 = fcmp une double %77, 0.000000e+00
  br i1 %78, label %79, label %.loopexit

79:                                               ; preds = %._crit_edge
  %80 = fdiv double 1.000000e+00, %77
  %81 = load double, ptr %4, align 8, !tbaa !9
  %82 = fdiv double %80, %81
  store double %82, ptr %5, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %53, %79, %._crit_edge, %38, %37, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #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 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 = !{!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