; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4

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

54:                                               ; preds = %50, %9
  %55 = phi i1 [ true, %9 ], [ %53, %50 ]
  %56 = zext i1 %55 to i32
  store i32 %56, ptr %31, align 4, !tbaa !9
  %57 = load ptr, ptr %12, align 8, !tbaa !5
  %58 = call i32 @lsame_(ptr noundef %57, ptr noundef @.str.2)
  store i32 %58, ptr %34, align 4, !tbaa !9
  %59 = load i32, ptr %31, align 4, !tbaa !9
  %60 = icmp ne i32 %59, 0
  br i1 %60, label %67, label %61

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

65:                                               ; preds = %61
  %66 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -1, ptr %66, align 4, !tbaa !9
  br label %94

67:                                               ; preds = %61, %54
  %68 = load i32, ptr %27, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %76, label %70

70:                                               ; preds = %67
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = call i32 @lsame_(ptr noundef %71, ptr noundef @.str.4)
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %76, label %74

74:                                               ; preds = %70
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -2, ptr %75, align 4, !tbaa !9
  br label %93

76:                                               ; preds = %70, %67
  %77 = load i32, ptr %34, align 4, !tbaa !9
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %85, label %79

79:                                               ; preds = %76
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = call i32 @lsame_(ptr noundef %80, ptr noundef @.str)
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %85, label %83

83:                                               ; preds = %79
  %84 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -3, ptr %84, align 4, !tbaa !9
  br label %92

85:                                               ; preds = %79, %76
  %86 = load ptr, ptr %13, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = icmp slt i32 %87, 0
  br i1 %88, label %89, label %91

89:                                               ; preds = %85
  %90 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -4, ptr %90, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %89, %85
  br label %92

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

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

94:                                               ; preds = %93, %65
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %103

98:                                               ; preds = %94
  %99 = load ptr, ptr %18, align 8, !tbaa !5
  %100 = load i32, ptr %99, align 4, !tbaa !9
  %101 = sub nsw i32 0, %100
  store i32 %101, ptr %19, align 4, !tbaa !9
  %102 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %19, i32 noundef 6)
  store i32 1, ptr %35, align 4
  br label %252

103:                                              ; preds = %94
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = icmp eq i32 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %103
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  store float 1.000000e+00, ptr %108, align 4, !tbaa !12
  store i32 1, ptr %35, align 4
  br label %252

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

115:                                              ; preds = %109
  br label %119

116:                                              ; preds = %109
  %117 = load ptr, ptr %13, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %116, %115
  %120 = phi i32 [ 1, %115 ], [ %118, %116 ]
  %121 = sitofp i32 %120 to float
  %122 = fmul float %111, %121
  store float %122, ptr %33, align 4, !tbaa !12
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = load ptr, ptr %12, align 8, !tbaa !5
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.complex, ptr %127, i64 1
  %129 = load ptr, ptr %17, align 8, !tbaa !5
  %130 = getelementptr inbounds float, ptr %129, i64 1
  %131 = call float @clantp_(ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef %126, ptr noundef %128, ptr noundef %130)
  store float %131, ptr %26, align 4, !tbaa !12
  %132 = load float, ptr %26, align 4, !tbaa !12
  %133 = fcmp ogt float %132, 0.000000e+00
  br i1 %133, label %134, label %250

134:                                              ; preds = %119
  store float 0.000000e+00, ptr %30, align 4, !tbaa !12
  %135 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 78, ptr %135, align 1, !tbaa !11
  %136 = load i32, ptr %31, align 4, !tbaa !9
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %139

138:                                              ; preds = %134
  store i32 1, ptr %23, align 4, !tbaa !9
  br label %140

139:                                              ; preds = %134
  store i32 2, ptr %23, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %139, %138
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %239, %140
  %142 = load ptr, ptr %13, align 8, !tbaa !5
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = add nsw i32 %145, 1
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds %struct.complex, ptr %143, i64 %147
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.complex, ptr %149, i64 1
  %151 = getelementptr inbounds [3 x i32], ptr %25, i64 0, i64 0
  call void @clacn2_(ptr noundef %142, ptr noundef %148, ptr noundef %150, ptr noundef %30, ptr noundef %22, ptr noundef %151)
  %152 = load i32, ptr %22, align 4, !tbaa !9
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %240

154:                                              ; preds = %141
  %155 = load i32, ptr %22, align 4, !tbaa !9
  %156 = load i32, ptr %23, align 4, !tbaa !9
  %157 = icmp eq i32 %155, %156
  br i1 %157, label %158, label %170

158:                                              ; preds = %154
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %162 = load ptr, ptr %13, align 8, !tbaa !5
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.complex, ptr %163, i64 1
  %165 = load ptr, ptr %16, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.complex, ptr %165, i64 1
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = getelementptr inbounds float, ptr %167, i64 1
  %169 = load ptr, ptr %18, align 8, !tbaa !5
  call void @clatps_(ptr noundef %159, ptr noundef @.str.7, ptr noundef %160, ptr noundef %161, ptr noundef %162, ptr noundef %164, ptr noundef %166, ptr noundef %24, ptr noundef %168, ptr noundef %169)
  br label %182

170:                                              ; preds = %154
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = load ptr, ptr %14, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.complex, ptr %175, i64 1
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.complex, ptr %177, i64 1
  %179 = load ptr, ptr %17, align 8, !tbaa !5
  %180 = getelementptr inbounds float, ptr %179, i64 1
  %181 = load ptr, ptr %18, align 8, !tbaa !5
  call void @clatps_(ptr noundef %171, ptr noundef @.str.8, ptr noundef %172, ptr noundef %173, ptr noundef %174, ptr noundef %176, ptr noundef %178, ptr noundef %24, ptr noundef %180, ptr noundef %181)
  br label %182

182:                                              ; preds = %170, %158
  %183 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %183, align 1, !tbaa !11
  %184 = load float, ptr %24, align 4, !tbaa !12
  %185 = fcmp une float %184, 1.000000e+00
  br i1 %185, label %186, label %239

186:                                              ; preds = %182
  %187 = load ptr, ptr %13, align 8, !tbaa !5
  %188 = load ptr, ptr %16, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.complex, ptr %188, i64 1
  %190 = call i32 @icamax_(ptr noundef %187, ptr noundef %189, ptr noundef @c__1)
  store i32 %190, ptr %29, align 4, !tbaa !9
  %191 = load i32, ptr %29, align 4, !tbaa !9
  store i32 %191, ptr %19, align 4, !tbaa !9
  %192 = load ptr, ptr %16, align 8, !tbaa !5
  %193 = load i32, ptr %19, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds %struct.complex, ptr %192, i64 %194
  %196 = getelementptr inbounds %struct.complex, ptr %195, i32 0, i32 0
  %197 = load float, ptr %196, align 4, !tbaa !14
  store float %197, ptr %20, align 4, !tbaa !12
  %198 = load float, ptr %20, align 4, !tbaa !12
  %199 = fcmp oge float %198, 0.000000e+00
  br i1 %199, label %200, label %202

200:                                              ; preds = %186
  %201 = load float, ptr %20, align 4, !tbaa !12
  br label %205

202:                                              ; preds = %186
  %203 = load float, ptr %20, align 4, !tbaa !12
  %204 = fneg float %203
  br label %205

205:                                              ; preds = %202, %200
  %206 = phi float [ %201, %200 ], [ %204, %202 ]
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  %208 = load i32, ptr %29, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds %struct.complex, ptr %207, i64 %209
  %211 = call <2 x float> @Cf(ptr noundef %210)
  store <2 x float> %211, ptr %36, align 4
  %212 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 0
  %213 = load float, ptr %212, align 4
  %214 = getelementptr inbounds { float, float }, ptr %36, i32 0, i32 1
  %215 = load float, ptr %214, align 4
  store float %215, ptr %21, align 4, !tbaa !12
  %216 = load float, ptr %21, align 4, !tbaa !12
  %217 = fcmp oge float %216, 0.000000e+00
  br i1 %217, label %218, label %220

218:                                              ; preds = %205
  %219 = load float, ptr %21, align 4, !tbaa !12
  br label %223

220:                                              ; preds = %205
  %221 = load float, ptr %21, align 4, !tbaa !12
  %222 = fneg float %221
  br label %223

223:                                              ; preds = %220, %218
  %224 = phi float [ %219, %218 ], [ %222, %220 ]
  %225 = fadd float %206, %224
  store float %225, ptr %28, align 4, !tbaa !12
  %226 = load float, ptr %24, align 4, !tbaa !12
  %227 = load float, ptr %28, align 4, !tbaa !12
  %228 = load float, ptr %33, align 4, !tbaa !12
  %229 = fmul float %227, %228
  %230 = fcmp olt float %226, %229
  br i1 %230, label %234, label %231

231:                                              ; preds = %223
  %232 = load float, ptr %24, align 4, !tbaa !12
  %233 = fcmp oeq float %232, 0.000000e+00
  br i1 %233, label %234, label %235

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

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

239:                                              ; preds = %235, %182
  br label %141

240:                                              ; preds = %141
  %241 = load float, ptr %30, align 4, !tbaa !12
  %242 = fcmp une float %241, 0.000000e+00
  br i1 %242, label %243, label %249

243:                                              ; preds = %240
  %244 = load float, ptr %26, align 4, !tbaa !12
  %245 = fdiv float 1.000000e+00, %244
  %246 = load float, ptr %30, align 4, !tbaa !12
  %247 = fdiv float %245, %246
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  store float %247, ptr %248, align 4, !tbaa !12
  br label %249

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

250:                                              ; preds = %249, %119
  br label %251

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

252:                                              ; preds = %251, %107, %98
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  ret void
}

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

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

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

declare float @slamch_(ptr noundef) #2

declare float @clantp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

declare void @clatps_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) #3

declare void @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"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!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 i32, align 4

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

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

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

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

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

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

31:                                               ; preds = %30
  %32 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #4
  %.not79 = icmp eq i32 %32, 0
  br i1 %.not79, label %.thread83.sink.split, label %33

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

36:                                               ; preds = %33
  %.pr = load i32, ptr %8, align 4, !tbaa !5
  %.not80 = icmp eq i32 %.pr, 0
  br i1 %.not80, label %40, label %.thread83

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

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

40:                                               ; preds = %36
  %41 = icmp eq i32 %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 float @slamch_(ptr noundef nonnull @.str.6) #4
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = icmp slt i32 %45, 2
  %47 = uitofp nneg i32 %45 to float
  %48 = select i1 %46, float 1.000000e+00, float %47
  %49 = fmul float %44, %48
  %50 = tail call float @clantp_(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef %7) #4
  %51 = fcmp ogt float %50, 0.000000e+00
  br i1 %51, label %52, label %.loopexit

52:                                               ; preds = %43
  store float 0.000000e+00, ptr %14, align 4, !tbaa !10
  store i8 78, ptr %15, align 1, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !5
  %53 = load i32, ptr %3, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %gep86 = getelementptr %struct.complex, ptr %6, i64 %54
  call void @clacn2_(ptr noundef nonnull %3, ptr noundef %gep86, ptr noundef %6, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %55 = load i32, ptr %11, align 4, !tbaa !5
  %.not8187 = icmp eq i32 %55, 0
  br i1 %.not8187, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %52, %78
  %56 = phi i32 [ %81, %78 ], [ %55, %52 ]
  %57 = icmp eq i32 %56, %.
  %.str.7..str.8 = select i1 %57, ptr @.str.7, ptr @.str.8
  call void @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) #4
  store i8 89, ptr %15, align 1, !tbaa !9
  %58 = load float, ptr %12, align 4, !tbaa !10
  %59 = fcmp une float %58, 1.000000e+00
  br i1 %59, label %60, label %78

60:                                               ; preds = %.lr.ph
  %61 = call i32 @icamax_(ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %struct.complex, ptr %16, i64 %62
  %64 = load float, ptr %63, align 4, !tbaa !12
  %65 = fcmp oge float %64, 0.000000e+00
  %66 = fneg float %64
  %67 = select i1 %65, float %64, float %66
  %68 = call <2 x float> @Cf(ptr noundef nonnull %63)
  %.sroa.0.4.vec.extract = extractelement <2 x float> %68, i64 1
  %69 = fcmp oge float %.sroa.0.4.vec.extract, 0.000000e+00
  %70 = fneg float %.sroa.0.4.vec.extract
  %71 = select i1 %69, float %.sroa.0.4.vec.extract, float %70
  %72 = fadd float %67, %71
  %73 = load float, ptr %12, align 4
  %74 = fmul float %49, %72
  %75 = fcmp olt float %73, %74
  %76 = fcmp oeq float %73, 0.000000e+00
  %or.cond = or i1 %76, %75
  br i1 %or.cond, label %.loopexit, label %77

77:                                               ; preds = %60
  call void @csrscl_(ptr noundef nonnull %3, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %78

78:                                               ; preds = %77, %.lr.ph
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %gep = getelementptr %struct.complex, ptr %6, i64 %80
  call void @clacn2_(ptr noundef nonnull %3, ptr noundef %gep, ptr noundef %6, ptr noundef nonnull %14, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %81 = load i32, ptr %11, align 4, !tbaa !5
  %.not81 = icmp eq i32 %81, 0
  br i1 %.not81, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %78, %52
  %82 = load float, ptr %14, align 4, !tbaa !10
  %83 = fcmp une float %82, 0.000000e+00
  br i1 %83, label %84, label %.loopexit

84:                                               ; preds = %._crit_edge
  %85 = fdiv float 1.000000e+00, %50
  %86 = fdiv float %85, %82
  store float %86, ptr %5, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %60, %._crit_edge, %84, %43, %42, %.thread83
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  ret void
}

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

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

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

declare float @slamch_(ptr noundef) local_unnamed_addr #2

declare float @clantp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @Cf(ptr noundef) local_unnamed_addr #3

declare void @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"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!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,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass