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

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

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

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

54:                                               ; preds = %50, %9
  %55 = phi i1 [ true, %9 ], [ %53, %50 ]
  %56 = zext i1 %55 to i32
  %57 = sext i32 %56 to i64
  store i64 %57, ptr %32, align 8, !tbaa !9
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = call i64 @lsame_(ptr noundef %58, ptr noundef @.str.2)
  store i64 %59, ptr %35, align 8, !tbaa !9
  %60 = load i64, ptr %32, align 8, !tbaa !9
  %61 = icmp ne i64 %60, 0
  br i1 %61, label %68, label %62

62:                                               ; preds = %54
  %63 = load ptr, ptr %11, align 8, !tbaa !5
  %64 = call i64 @lsame_(ptr noundef %63, ptr noundef @.str.3)
  %65 = icmp ne i64 %64, 0
  br i1 %65, label %68, label %66

66:                                               ; preds = %62
  %67 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %67, align 8, !tbaa !9
  br label %95

68:                                               ; preds = %62, %54
  %69 = load i64, ptr %29, align 8, !tbaa !9
  %70 = icmp ne i64 %69, 0
  br i1 %70, label %77, label %71

71:                                               ; preds = %68
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = call i64 @lsame_(ptr noundef %72, ptr noundef @.str.4)
  %74 = icmp ne i64 %73, 0
  br i1 %74, label %77, label %75

75:                                               ; preds = %71
  %76 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %76, align 8, !tbaa !9
  br label %94

77:                                               ; preds = %71, %68
  %78 = load i64, ptr %35, align 8, !tbaa !9
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %86, label %80

80:                                               ; preds = %77
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = call i64 @lsame_(ptr noundef %81, ptr noundef @.str)
  %83 = icmp ne i64 %82, 0
  br i1 %83, label %86, label %84

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

86:                                               ; preds = %80, %77
  %87 = load ptr, ptr %14, align 8, !tbaa !5
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = icmp slt i64 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %86
  %91 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %91, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %90, %86
  br label %93

93:                                               ; preds = %92, %84
  br label %94

94:                                               ; preds = %93, %75
  br label %95

95:                                               ; preds = %94, %66
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = icmp ne i64 %97, 0
  br i1 %98, label %99, label %104

99:                                               ; preds = %95
  %100 = load ptr, ptr %19, align 8, !tbaa !5
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = sub nsw i64 0, %101
  store i64 %102, ptr %20, align 8, !tbaa !9
  %103 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %20)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %257

104:                                              ; preds = %95
  %105 = load ptr, ptr %14, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = icmp eq i64 %106, 0
  br i1 %107, label %108, label %110

108:                                              ; preds = %104
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  store float 1.000000e+00, ptr %109, align 4, !tbaa !12
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %257

110:                                              ; preds = %104
  %111 = load ptr, ptr %16, align 8, !tbaa !5
  store float 0.000000e+00, ptr %111, align 4, !tbaa !12
  %112 = call double @slamch_(ptr noundef @.str.6)
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = icmp sge i64 1, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %110
  br label %120

117:                                              ; preds = %110
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = load i64, ptr %118, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %117, %116
  %121 = phi i64 [ 1, %116 ], [ %119, %117 ]
  %122 = sitofp i64 %121 to float
  %123 = fpext float %122 to double
  %124 = fmul double %112, %123
  %125 = fptrunc double %124 to float
  store float %125, ptr %34, align 4, !tbaa !12
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = load ptr, ptr %13, align 8, !tbaa !5
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.complex, ptr %130, i64 1
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = getelementptr inbounds float, ptr %132, i64 1
  %134 = call double @clantp_(ptr noundef %126, ptr noundef %127, ptr noundef %128, ptr noundef %129, ptr noundef %131, ptr noundef %133)
  %135 = fptrunc double %134 to float
  store float %135, ptr %28, align 4, !tbaa !12
  %136 = load float, ptr %28, align 4, !tbaa !12
  %137 = fcmp ogt float %136, 0.000000e+00
  br i1 %137, label %138, label %255

138:                                              ; preds = %120
  store float 0.000000e+00, ptr %31, align 4, !tbaa !12
  %139 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 78, ptr %139, align 1, !tbaa !11
  %140 = load i64, ptr %32, align 8, !tbaa !9
  %141 = icmp ne i64 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %138
  store i64 1, ptr %25, align 8, !tbaa !9
  br label %144

143:                                              ; preds = %138
  store i64 2, ptr %25, align 8, !tbaa !9
  br label %144

144:                                              ; preds = %143, %142
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %145

145:                                              ; preds = %244, %144
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = load ptr, ptr %17, align 8, !tbaa !5
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = add nsw i64 %149, 1
  %151 = getelementptr inbounds %struct.complex, ptr %147, i64 %150
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.complex, ptr %152, i64 1
  %154 = getelementptr inbounds [3 x i64], ptr %27, i64 0, i64 0
  %155 = call i32 @clacn2_(ptr noundef %146, ptr noundef %151, ptr noundef %153, ptr noundef %31, ptr noundef %24, ptr noundef %154)
  %156 = load i64, ptr %24, align 8, !tbaa !9
  %157 = icmp ne i64 %156, 0
  br i1 %157, label %158, label %245

158:                                              ; preds = %145
  %159 = load i64, ptr %24, align 8, !tbaa !9
  %160 = load i64, ptr %25, align 8, !tbaa !9
  %161 = icmp eq i64 %159, %160
  br i1 %161, label %162, label %175

162:                                              ; preds = %158
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %166 = load ptr, ptr %14, align 8, !tbaa !5
  %167 = load ptr, ptr %15, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.complex, ptr %167, i64 1
  %169 = load ptr, ptr %17, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.complex, ptr %169, i64 1
  %171 = load ptr, ptr %18, align 8, !tbaa !5
  %172 = getelementptr inbounds float, ptr %171, i64 1
  %173 = load ptr, ptr %19, align 8, !tbaa !5
  %174 = call i32 @clatps_(ptr noundef %163, ptr noundef @.str.7, ptr noundef %164, ptr noundef %165, ptr noundef %166, ptr noundef %168, ptr noundef %170, ptr noundef %26, ptr noundef %172, ptr noundef %173)
  br label %188

175:                                              ; preds = %158
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  %179 = load ptr, ptr %14, align 8, !tbaa !5
  %180 = load ptr, ptr %15, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.complex, ptr %180, i64 1
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.complex, ptr %182, i64 1
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  %185 = getelementptr inbounds float, ptr %184, i64 1
  %186 = load ptr, ptr %19, align 8, !tbaa !5
  %187 = call i32 @clatps_(ptr noundef %176, ptr noundef @.str.8, ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %181, ptr noundef %183, ptr noundef %26, ptr noundef %185, ptr noundef %186)
  br label %188

188:                                              ; preds = %175, %162
  %189 = getelementptr inbounds [1 x i8], ptr %33, i64 0, i64 0
  store i8 89, ptr %189, align 1, !tbaa !11
  %190 = load float, ptr %26, align 4, !tbaa !12
  %191 = fcmp une float %190, 1.000000e+00
  br i1 %191, label %192, label %244

192:                                              ; preds = %188
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  %194 = load ptr, ptr %17, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.complex, ptr %194, i64 1
  %196 = call i64 @f2c_icamax(ptr noundef %193, ptr noundef %195, ptr noundef @c__1)
  store i64 %196, ptr %23, align 8, !tbaa !9
  %197 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %197, ptr %20, align 8, !tbaa !9
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = load i64, ptr %20, align 8, !tbaa !9
  %200 = getelementptr inbounds %struct.complex, ptr %198, i64 %199
  %201 = getelementptr inbounds %struct.complex, ptr %200, i32 0, i32 0
  %202 = load float, ptr %201, align 4, !tbaa !14
  store float %202, ptr %21, align 4, !tbaa !12
  %203 = load float, ptr %21, align 4, !tbaa !12
  %204 = fcmp oge float %203, 0.000000e+00
  br i1 %204, label %205, label %207

205:                                              ; preds = %192
  %206 = load float, ptr %21, align 4, !tbaa !12
  br label %210

207:                                              ; preds = %192
  %208 = load float, ptr %21, align 4, !tbaa !12
  %209 = fneg float %208
  br label %210

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

220:                                              ; preds = %210
  %221 = load float, ptr %22, align 4, !tbaa !12
  br label %225

222:                                              ; preds = %210
  %223 = load float, ptr %22, align 4, !tbaa !12
  %224 = fneg float %223
  br label %225

225:                                              ; preds = %222, %220
  %226 = phi float [ %221, %220 ], [ %224, %222 ]
  %227 = fpext float %226 to double
  %228 = fadd double %212, %227
  %229 = fptrunc double %228 to float
  store float %229, ptr %30, align 4, !tbaa !12
  %230 = load float, ptr %26, align 4, !tbaa !12
  %231 = load float, ptr %30, align 4, !tbaa !12
  %232 = load float, ptr %34, align 4, !tbaa !12
  %233 = fmul float %231, %232
  %234 = fcmp olt float %230, %233
  br i1 %234, label %238, label %235

235:                                              ; preds = %225
  %236 = load float, ptr %26, align 4, !tbaa !12
  %237 = fcmp oeq float %236, 0.000000e+00
  br i1 %237, label %238, label %239

238:                                              ; preds = %235, %225
  br label %256

239:                                              ; preds = %235
  %240 = load ptr, ptr %14, align 8, !tbaa !5
  %241 = load ptr, ptr %17, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.complex, ptr %241, i64 1
  %243 = call i32 @csrscl_(ptr noundef %240, ptr noundef %26, ptr noundef %242, ptr noundef @c__1)
  br label %244

244:                                              ; preds = %239, %188
  br label %145

245:                                              ; preds = %145
  %246 = load float, ptr %31, align 4, !tbaa !12
  %247 = fcmp une float %246, 0.000000e+00
  br i1 %247, label %248, label %254

248:                                              ; preds = %245
  %249 = load float, ptr %28, align 4, !tbaa !12
  %250 = fdiv float 1.000000e+00, %249
  %251 = load float, ptr %31, align 4, !tbaa !12
  %252 = fdiv float %250, %251
  %253 = load ptr, ptr %16, align 8, !tbaa !5
  store float %252, ptr %253, align 4, !tbaa !12
  br label %254

254:                                              ; preds = %248, %245
  br label %255

255:                                              ; preds = %254, %120
  br label %256

256:                                              ; preds = %255, %238
  store i32 0, ptr %10, align 4
  store i32 1, ptr %36, align 4
  br label %257

257:                                              ; preds = %256, %108, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  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 8, 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 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %258 = load i32, ptr %10, align 4
  ret i32 %258
}

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

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

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

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

.thread:                                          ; preds = %9
  %20 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br label %26

21:                                               ; preds = %9
  %22 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
  %.not86 = icmp eq i64 %22, 0
  %23 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br i1 %.not86, label %24, label %26

24:                                               ; preds = %21
  %25 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #3
  %.not = icmp eq i64 %25, 0
  br i1 %.not, label %.thread84.sink.split, label %26

26:                                               ; preds = %.thread, %24, %21
  %27 = phi i64 [ %20, %.thread ], [ %23, %24 ], [ %23, %21 ]
  %. = phi i64 [ 1, %.thread ], [ 2, %24 ], [ 1, %21 ]
  %.not77 = icmp eq i64 %17, 0
  br i1 %.not77, label %28, label %30

28:                                               ; preds = %26
  %29 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #3
  %.not78 = icmp eq i64 %29, 0
  br i1 %.not78, label %.thread84.sink.split, label %30

30:                                               ; preds = %28, %26
  %.not79 = icmp eq i64 %27, 0
  br i1 %.not79, label %31, label %33

31:                                               ; preds = %30
  %32 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #3
  %.not80 = icmp eq i64 %32, 0
  br i1 %.not80, label %.thread84.sink.split, label %33

33:                                               ; preds = %31, %30
  %34 = load i64, ptr %3, align 8, !tbaa !5
  %35 = icmp slt i64 %34, 0
  br i1 %35, label %.thread84.sink.split, label %36

36:                                               ; preds = %33
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not81 = icmp eq i64 %.pr, 0
  br i1 %.not81, label %40, label %.thread84

.thread84.sink.split:                             ; preds = %33, %31, %28, %24
  %.sink = phi i64 [ -1, %24 ], [ -2, %28 ], [ -3, %31 ], [ -4, %33 ]
  store i64 %.sink, ptr %8, align 8, !tbaa !5
  br label %.thread84

.thread84:                                        ; preds = %.thread84.sink.split, %36
  %37 = phi i64 [ %.pr, %36 ], [ %.sink, %.thread84.sink.split ]
  %38 = sub nsw i64 0, %37
  store i64 %38, ptr %10, align 8, !tbaa !5
  %39 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %10) #3
  br label %.loopexit

40:                                               ; preds = %36
  %41 = icmp eq i64 %34, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  store float 1.000000e+00, ptr %5, align 4, !tbaa !10
  br label %.loopexit

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

55:                                               ; preds = %43
  store float 0.000000e+00, ptr %14, align 4, !tbaa !10
  store i8 78, ptr %15, align 1, !tbaa !9
  store i64 0, ptr %11, align 8, !tbaa !5
  %56 = load i64, ptr %3, align 8, !tbaa !5
  %57 = getelementptr %struct.complex, ptr %6, i64 %56
  %58 = call i32 @clacn2_(ptr noundef nonnull %3, ptr noundef %57, ptr noundef %6, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %13) #3
  %59 = load i64, ptr %11, align 8, !tbaa !5
  %.not8287 = icmp eq i64 %59, 0
  br i1 %.not8287, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %55, %84
  %60 = phi i64 [ %88, %84 ], [ %59, %55 ]
  %61 = icmp eq i64 %60, %.
  %.str.7..str.8 = select i1 %61, ptr @.str.7, ptr @.str.8
  %62 = call i32 @clatps_(ptr noundef %1, ptr noundef nonnull %.str.7..str.8, ptr noundef %2, ptr noundef nonnull %15, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %6, ptr noundef nonnull %12, ptr noundef %7, ptr noundef nonnull %8) #3
  store i8 89, ptr %15, align 1, !tbaa !9
  %63 = load float, ptr %12, align 4, !tbaa !10
  %64 = fcmp une float %63, 1.000000e+00
  br i1 %64, label %65, label %84

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

82:                                               ; preds = %65
  %83 = call i32 @csrscl_(ptr noundef nonnull %3, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #3
  br label %84

84:                                               ; preds = %82, %.lr.ph
  %85 = load i64, ptr %3, align 8, !tbaa !5
  %86 = getelementptr %struct.complex, ptr %6, i64 %85
  %87 = call i32 @clacn2_(ptr noundef nonnull %3, ptr noundef %86, ptr noundef %6, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %13) #3
  %88 = load i64, ptr %11, align 8, !tbaa !5
  %.not82 = icmp eq i64 %88, 0
  br i1 %.not82, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %84, %55
  %89 = load float, ptr %14, align 4, !tbaa !10
  %90 = fcmp une float %89, 0.000000e+00
  br i1 %90, label %91, label %.loopexit

91:                                               ; preds = %._crit_edge
  %92 = fdiv float 1.000000e+00, %53
  %93 = fdiv float %92, %89
  store float %93, ptr %5, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %65, %._crit_edge, %91, %43, %42, %.thread84
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  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 double @clantp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 @clatps_(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

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


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