; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (cpocon)

; 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.complex = type { float, float }

@.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 @cpocon_(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 float, align 4
  %24 = alloca float, align 4
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  %27 = alloca float, align 4
  %28 = alloca [3 x i64], align 16
  %29 = alloca i64, align 8
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca [1 x i8], align 1
  %34 = alloca float, align 4
  %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 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, 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 4, 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 4, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 4, 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.complex, 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.complex, 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 float, 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 float, ptr %81, align 4, !tbaa !11
  %83 = fcmp olt float %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 %254

98:                                               ; preds = %89
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  store float 0.000000e+00, ptr %99, align 4, !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 float 1.000000e+00, ptr %104, align 4, !tbaa !11
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %254

105:                                              ; preds = %98
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  %107 = load float, ptr %106, align 4, !tbaa !11
  %108 = fcmp oeq float %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 %254

110:                                              ; preds = %105
  br label %111

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

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

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

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

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

183:                                              ; preds = %157, %131
  %184 = load float, ptr %30, align 4, !tbaa !11
  %185 = load float, ptr %31, align 4, !tbaa !11
  %186 = fmul float %184, %185
  store float %186, ptr %27, align 4, !tbaa !11
  %187 = load float, ptr %27, align 4, !tbaa !11
  %188 = fcmp une float %187, 1.000000e+00
  br i1 %188, label %189, label %241

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

204:                                              ; preds = %189
  %205 = load float, ptr %23, align 4, !tbaa !11
  br label %209

206:                                              ; preds = %189
  %207 = load float, ptr %23, align 4, !tbaa !11
  %208 = fneg float %207
  br label %209

209:                                              ; preds = %206, %204
  %210 = phi float [ %205, %204 ], [ %208, %206 ]
  %211 = fpext float %210 to double
  %212 = load ptr, ptr %17, align 8, !tbaa !5
  %213 = load i64, ptr %25, align 8, !tbaa !9
  %214 = getelementptr inbounds %struct.complex, ptr %212, i64 %213
  %215 = call double @r_imag(ptr noundef %214)
  %216 = fptrunc double %215 to float
  store float %216, ptr %24, align 4, !tbaa !11
  %217 = load float, ptr %24, align 4, !tbaa !11
  %218 = fcmp oge float %217, 0.000000e+00
  br i1 %218, label %219, label %221

219:                                              ; preds = %209
  %220 = load float, ptr %24, align 4, !tbaa !11
  br label %224

221:                                              ; preds = %209
  %222 = load float, ptr %24, align 4, !tbaa !11
  %223 = fneg float %222
  br label %224

224:                                              ; preds = %221, %219
  %225 = phi float [ %220, %219 ], [ %223, %221 ]
  %226 = fpext float %225 to double
  %227 = fadd double %211, %226
  %228 = load float, ptr %34, align 4, !tbaa !11
  %229 = fpext float %228 to double
  %230 = fmul double %227, %229
  %231 = fcmp olt double %196, %230
  br i1 %231, label %235, label %232

232:                                              ; preds = %224
  %233 = load float, ptr %27, align 4, !tbaa !11
  %234 = fcmp oeq float %233, 0.000000e+00
  br i1 %234, label %235, label %236

235:                                              ; preds = %232, %224
  br label %253

236:                                              ; preds = %232
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  %238 = load ptr, ptr %17, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.complex, ptr %238, i64 1
  %240 = call i32 @csrscl_(ptr noundef %237, ptr noundef %27, ptr noundef %239, ptr noundef @c__1)
  br label %241

241:                                              ; preds = %236, %183
  br label %115

242:                                              ; preds = %115
  %243 = load float, ptr %32, align 4, !tbaa !11
  %244 = fcmp une float %243, 0.000000e+00
  br i1 %244, label %245, label %252

245:                                              ; preds = %242
  %246 = load float, ptr %32, align 4, !tbaa !11
  %247 = fdiv float 1.000000e+00, %246
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = load float, ptr %248, align 4, !tbaa !11
  %250 = fdiv float %247, %249
  %251 = load ptr, ptr %16, align 8, !tbaa !5
  store float %250, ptr %251, align 4, !tbaa !11
  br label %252

252:                                              ; preds = %245, %242
  br label %253

253:                                              ; preds = %252, %235
  store i32 0, ptr %10, align 4
  store i32 1, ptr %35, align 4
  br label %254

254:                                              ; preds = %253, %109, %103, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 4, 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 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, 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
  %255 = load i32, ptr %10, align 4
  ret i32 %255
}

; 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 @slamch_(ptr noundef) #2

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

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

declare double @r_imag(ptr noundef) #2

declare i32 @csrscl_(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 = !{!"float", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !12, i64 0}
!15 = !{!"", !12, i64 0, !12, i64 4}


; 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.complex = type { float, float }

@.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 @cpocon_(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 float, align 4
  %13 = alloca [3 x i64], align 16
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %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 4, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #4
  %18 = getelementptr inbounds i8, ptr %6, i64 -8
  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 float, ptr %4, align 4, !tbaa !9
  %30 = fcmp olt float %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 float 0.000000e+00, ptr %5, align 4, !tbaa !9
  %36 = icmp eq i64 %23, 0
  br i1 %36, label %37, label %38

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

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

41:                                               ; preds = %38
  %42 = tail call double @slamch_(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.complex, ptr %6, i64 %43
  %45 = call i32 @clacn2_(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
  %47 = fptrunc double %42 to float
  %48 = fpext float %47 to double
  br label %49

49:                                               ; preds = %.lr.ph, %83
  br i1 %.not, label %53, label %50

50:                                               ; preds = %49
  %51 = call i32 @clatrs_(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
  %52 = call i32 @clatrs_(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 %56

53:                                               ; preds = %49
  %54 = call i32 @clatrs_(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
  %55 = call i32 @clatrs_(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 %56

56:                                               ; preds = %53, %50
  %57 = load float, ptr %14, align 4, !tbaa !9
  %58 = load float, ptr %15, align 4, !tbaa !9
  %59 = fmul float %57, %58
  store float %59, ptr %12, align 4, !tbaa !9
  %60 = fcmp une float %59, 1.000000e+00
  br i1 %60, label %61, label %83

61:                                               ; preds = %56
  %62 = call i64 @f2c_icamax(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %63 = load float, ptr %12, align 4, !tbaa !9
  %64 = fpext float %63 to double
  %65 = getelementptr inbounds %struct.complex, ptr %18, i64 %62
  %66 = load float, ptr %65, align 4, !tbaa !12
  %67 = call double @r_imag(ptr noundef nonnull %65) #4
  %68 = fptrunc double %67 to float
  %69 = insertelement <2 x float> poison, float %66, i64 0
  %70 = insertelement <2 x float> %69, float %68, i64 1
  %71 = fcmp oge <2 x float> %70, zeroinitializer
  %72 = fneg <2 x float> %70
  %73 = select <2 x i1> %71, <2 x float> %70, <2 x float> %72
  %74 = fpext <2 x float> %73 to <2 x double>
  %shift = shufflevector <2 x double> %74, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %75 = fadd <2 x double> %shift, %74
  %76 = extractelement <2 x double> %75, i64 0
  %77 = fmul double %76, %48
  %78 = fcmp ogt double %77, %64
  %79 = load float, ptr %12, align 4
  %80 = fcmp oeq float %79, 0.000000e+00
  %or.cond = select i1 %78, i1 true, i1 %80
  br i1 %or.cond, label %.loopexit, label %81

81:                                               ; preds = %61
  %82 = call i32 @csrscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %83

83:                                               ; preds = %81, %56
  %84 = load i64, ptr %1, align 8, !tbaa !5
  %85 = getelementptr %struct.complex, ptr %6, i64 %84
  %86 = call i32 @clacn2_(ptr noundef nonnull %1, ptr noundef %85, ptr noundef %6, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %87 = load i64, ptr %11, align 8, !tbaa !5
  %.not80 = icmp eq i64 %87, 0
  br i1 %.not80, label %._crit_edge, label %49

._crit_edge:                                      ; preds = %83, %41
  %88 = load float, ptr %16, align 4, !tbaa !9
  %89 = fcmp une float %88, 0.000000e+00
  br i1 %89, label %90, label %.loopexit

90:                                               ; preds = %._crit_edge
  %91 = fdiv float 1.000000e+00, %88
  %92 = load float, ptr %4, align 4, !tbaa !9
  %93 = fdiv float %91, %92
  store float %93, ptr %5, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %61, %90, %._crit_edge, %38, %37, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 @slamch_(ptr noundef) local_unnamed_addr #2

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

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

declare double @r_imag(ptr noundef) local_unnamed_addr #2

declare i32 @csrscl_(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 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 0}
!13 = !{!"", !10, i64 0, !10, i64 4}


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