; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (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 i64, align 8

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

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

57:                                               ; preds = %53
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %58, align 8, !tbaa !9
  br label %89

59:                                               ; preds = %53, %9
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = icmp slt i64 %61, 0
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %64, align 8, !tbaa !9
  br label %88

65:                                               ; preds = %59
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = load i64, ptr %66, align 8, !tbaa !9
  %68 = load ptr, ptr %12, align 8, !tbaa !5
  %69 = load i64, ptr %68, align 8, !tbaa !9
  %70 = icmp sge i64 1, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %65
  br label %75

72:                                               ; preds = %65
  %73 = load ptr, ptr %12, align 8, !tbaa !5
  %74 = load i64, ptr %73, align 8, !tbaa !9
  br label %75

75:                                               ; preds = %72, %71
  %76 = phi i64 [ 1, %71 ], [ %74, %72 ]
  %77 = icmp slt i64 %67, %76
  br i1 %77, label %78, label %80

78:                                               ; preds = %75
  %79 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %79, align 8, !tbaa !9
  br label %87

80:                                               ; preds = %75
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = load double, ptr %81, align 8, !tbaa !11
  %83 = fcmp olt double %82, 0.000000e+00
  br i1 %83, label %84, label %86

84:                                               ; preds = %80
  %85 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -5, ptr %85, align 8, !tbaa !9
  br label %86

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

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

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

89:                                               ; preds = %88, %57
  %90 = load ptr, ptr %19, align 8, !tbaa !5
  %91 = load i64, ptr %90, align 8, !tbaa !9
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %93, label %98

93:                                               ; preds = %89
  %94 = load ptr, ptr %19, align 8, !tbaa !5
  %95 = load i64, ptr %94, align 8, !tbaa !9
  %96 = sub nsw i64 0, %95
  store i64 %96, ptr %22, align 8, !tbaa !9
  %97 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %22)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %248

98:                                               ; preds = %89
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  store double 0.000000e+00, ptr %99, align 8, !tbaa !11
  %100 = load ptr, ptr %12, align 8, !tbaa !5
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = icmp eq i64 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %98
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  store double 1.000000e+00, ptr %104, align 8, !tbaa !11
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %248

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

109:                                              ; preds = %105
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %248

110:                                              ; preds = %105
  br label %111

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

114:                                              ; preds = %235, %111
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load ptr, ptr %17, align 8, !tbaa !5
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = add nsw i64 %118, 1
  %120 = getelementptr inbounds %struct.doublecomplex, ptr %116, i64 %119
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.doublecomplex, ptr %121, i64 1
  %123 = getelementptr inbounds [3 x i64], ptr %28, i64 0, i64 0
  %124 = call i32 @zlacn2_(ptr noundef %115, ptr noundef %120, ptr noundef %122, ptr noundef %32, ptr noundef %26, ptr noundef %123)
  %125 = load i64, ptr %26, align 8, !tbaa !9
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %236

127:                                              ; preds = %114
  %128 = load i64, ptr %29, align 8, !tbaa !9
  %129 = icmp ne i64 %128, 0
  br i1 %129, label %130, label %156

130:                                              ; preds = %127
  %131 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = load i64, ptr %21, align 8, !tbaa !9
  %135 = getelementptr inbounds %struct.doublecomplex, ptr %133, i64 %134
  %136 = load ptr, ptr %14, align 8, !tbaa !5
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.doublecomplex, ptr %137, i64 1
  %139 = load ptr, ptr %18, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i64 1
  %141 = load ptr, ptr %19, align 8, !tbaa !5
  %142 = call i32 @zlatrs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %131, ptr noundef %132, ptr noundef %135, ptr noundef %136, ptr noundef %138, ptr noundef %30, ptr noundef %140, ptr noundef %141)
  %143 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 89, ptr %143, align 1, !tbaa !13
  %144 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %145 = load ptr, ptr %12, align 8, !tbaa !5
  %146 = load ptr, ptr %13, align 8, !tbaa !5
  %147 = load i64, ptr %21, align 8, !tbaa !9
  %148 = getelementptr inbounds %struct.doublecomplex, ptr %146, i64 %147
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.doublecomplex, ptr %150, i64 1
  %152 = load ptr, ptr %18, align 8, !tbaa !5
  %153 = getelementptr inbounds double, ptr %152, i64 1
  %154 = load ptr, ptr %19, align 8, !tbaa !5
  %155 = call i32 @zlatrs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %144, ptr noundef %145, ptr noundef %148, ptr noundef %149, ptr noundef %151, ptr noundef %31, ptr noundef %153, ptr noundef %154)
  br label %182

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

182:                                              ; preds = %156, %130
  %183 = load double, ptr %30, align 8, !tbaa !11
  %184 = load double, ptr %31, align 8, !tbaa !11
  %185 = fmul double %183, %184
  store double %185, ptr %27, align 8, !tbaa !11
  %186 = load double, ptr %27, align 8, !tbaa !11
  %187 = fcmp une double %186, 1.000000e+00
  br i1 %187, label %188, label %235

188:                                              ; preds = %182
  %189 = load ptr, ptr %12, align 8, !tbaa !5
  %190 = load ptr, ptr %17, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.doublecomplex, ptr %190, i64 1
  %192 = call i64 @f2c_izamax(ptr noundef %189, ptr noundef %191, ptr noundef @c__1)
  store i64 %192, ptr %25, align 8, !tbaa !9
  %193 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %193, ptr %22, align 8, !tbaa !9
  %194 = load double, ptr %27, align 8, !tbaa !11
  %195 = load ptr, ptr %17, align 8, !tbaa !5
  %196 = load i64, ptr %22, align 8, !tbaa !9
  %197 = getelementptr inbounds %struct.doublecomplex, ptr %195, i64 %196
  %198 = getelementptr inbounds %struct.doublecomplex, ptr %197, i32 0, i32 0
  %199 = load double, ptr %198, align 8, !tbaa !14
  store double %199, ptr %23, align 8, !tbaa !11
  %200 = load double, ptr %23, align 8, !tbaa !11
  %201 = fcmp oge double %200, 0.000000e+00
  br i1 %201, label %202, label %204

202:                                              ; preds = %188
  %203 = load double, ptr %23, align 8, !tbaa !11
  br label %207

204:                                              ; preds = %188
  %205 = load double, ptr %23, align 8, !tbaa !11
  %206 = fneg double %205
  br label %207

207:                                              ; preds = %204, %202
  %208 = phi double [ %203, %202 ], [ %206, %204 ]
  %209 = load ptr, ptr %17, align 8, !tbaa !5
  %210 = load i64, ptr %25, align 8, !tbaa !9
  %211 = getelementptr inbounds %struct.doublecomplex, ptr %209, i64 %210
  %212 = call double @d_imag(ptr noundef %211)
  store double %212, ptr %24, align 8, !tbaa !11
  %213 = load double, ptr %24, align 8, !tbaa !11
  %214 = fcmp oge double %213, 0.000000e+00
  br i1 %214, label %215, label %217

215:                                              ; preds = %207
  %216 = load double, ptr %24, align 8, !tbaa !11
  br label %220

217:                                              ; preds = %207
  %218 = load double, ptr %24, align 8, !tbaa !11
  %219 = fneg double %218
  br label %220

220:                                              ; preds = %217, %215
  %221 = phi double [ %216, %215 ], [ %219, %217 ]
  %222 = fadd double %208, %221
  %223 = load double, ptr %34, align 8, !tbaa !11
  %224 = fmul double %222, %223
  %225 = fcmp olt double %194, %224
  br i1 %225, label %229, label %226

226:                                              ; preds = %220
  %227 = load double, ptr %27, align 8, !tbaa !11
  %228 = fcmp oeq double %227, 0.000000e+00
  br i1 %228, label %229, label %230

229:                                              ; preds = %226, %220
  br label %247

230:                                              ; preds = %226
  %231 = load ptr, ptr %12, align 8, !tbaa !5
  %232 = load ptr, ptr %17, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.doublecomplex, ptr %232, i64 1
  %234 = call i32 @zdrscl_(ptr noundef %231, ptr noundef %27, ptr noundef %233, ptr noundef @c__1)
  br label %235

235:                                              ; preds = %230, %182
  br label %114

236:                                              ; preds = %114
  %237 = load double, ptr %32, align 8, !tbaa !11
  %238 = fcmp une double %237, 0.000000e+00
  br i1 %238, label %239, label %246

239:                                              ; preds = %236
  %240 = load double, ptr %32, align 8, !tbaa !11
  %241 = fdiv double 1.000000e+00, %240
  %242 = load ptr, ptr %15, align 8, !tbaa !5
  %243 = load double, ptr %242, align 8, !tbaa !11
  %244 = fdiv double %241, %243
  %245 = load ptr, ptr %16, align 8, !tbaa !5
  store double %244, ptr %245, align 8, !tbaa !11
  br label %246

246:                                              ; preds = %239, %236
  br label %247

247:                                              ; preds = %246, %229
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %248

248:                                              ; preds = %247, %109, %103, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %249 = load i32, ptr %10, align 4
  ret i32 %249
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) #2

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

declare double @dlamch_(ptr noundef) #2

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

declare i32 @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 i64 @f2c_izamax(ptr noundef, ptr noundef, ptr noundef) #2

declare double @d_imag(ptr noundef) #2

declare i32 @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 = { 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 = !{!"long", !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 i64, align 8

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

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

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

25:                                               ; preds = %22
  %26 = load i64, ptr %3, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %23, i64 1)
  %27 = icmp slt i64 %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 i64, ptr %8, align 8, !tbaa !5
  %.not79 = icmp eq i64 %.pr, 0
  br i1 %.not79, label %35, label %.thread

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

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

35:                                               ; preds = %31
  store double 0.000000e+00, ptr %5, align 8, !tbaa !9
  %36 = icmp eq i64 %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) #4
  store i64 0, ptr %11, align 8, !tbaa !5
  store i8 78, ptr %17, align 1, !tbaa !11
  %43 = load i64, ptr %1, align 8, !tbaa !5
  %44 = getelementptr %struct.doublecomplex, ptr %6, i64 %43
  %45 = call i32 @zlacn2_(ptr noundef nonnull %1, ptr noundef %44, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %46 = load i64, ptr %11, align 8, !tbaa !5
  %.not8082 = icmp eq i64 %46, 0
  br i1 %.not8082, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %41, %77
  br i1 %.not, label %50, label %47

47:                                               ; preds = %.lr.ph
  %48 = call i32 @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) #4
  store i8 89, ptr %17, align 1, !tbaa !11
  %49 = call i32 @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) #4
  br label %53

50:                                               ; preds = %.lr.ph
  %51 = call i32 @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) #4
  store i8 89, ptr %17, align 1, !tbaa !11
  %52 = call i32 @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) #4
  br label %53

53:                                               ; preds = %50, %47
  %54 = load double, ptr %14, align 8, !tbaa !9
  %55 = load double, ptr %15, align 8, !tbaa !9
  %56 = fmul double %54, %55
  store double %56, ptr %12, align 8, !tbaa !9
  %57 = fcmp une double %56, 1.000000e+00
  br i1 %57, label %58, label %77

58:                                               ; preds = %53
  %59 = call i64 @f2c_izamax(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %60 = load double, ptr %12, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.doublecomplex, ptr %18, i64 %59
  %62 = load double, ptr %61, align 8, !tbaa !12
  %63 = call double @d_imag(ptr noundef nonnull %61) #4
  %64 = insertelement <2 x double> poison, double %62, 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 %42, %70
  %72 = fcmp olt double %60, %71
  %73 = load double, ptr %12, 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 = %58
  %76 = call i32 @zdrscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %77

77:                                               ; preds = %75, %53
  %78 = load i64, ptr %1, align 8, !tbaa !5
  %79 = getelementptr %struct.doublecomplex, ptr %6, i64 %78
  %80 = call i32 @zlacn2_(ptr noundef nonnull %1, ptr noundef %79, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %81 = load i64, ptr %11, align 8, !tbaa !5
  %.not80 = icmp eq i64 %81, 0
  br i1 %.not80, label %._crit_edge, label %.lr.ph

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

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

.loopexit:                                        ; preds = %58, %84, %._crit_edge, %38, %37, %.thread
  call void @llvm.lifetime.end.p0(i64 1, 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 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  ret i32 0
}

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

declare i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

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

declare i32 @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 i64 @f2c_izamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare double @d_imag(ptr noundef) local_unnamed_addr #2

declare i32 @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 i64 @llvm.umax.i64(i64, i64) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !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,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass