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

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

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

66:                                               ; preds = %62, %10
  %67 = phi i1 [ true, %10 ], [ %65, %62 ]
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %35, align 4, !tbaa !9
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = call i32 @lsame_(ptr noundef %69, ptr noundef @.str.2)
  store i32 %70, ptr %38, align 4, !tbaa !9
  %71 = load i32, ptr %35, align 4, !tbaa !9
  %72 = icmp ne i32 %71, 0
  br i1 %72, label %79, label %73

73:                                               ; preds = %66
  %74 = load ptr, ptr %11, align 8, !tbaa !5
  %75 = call i32 @lsame_(ptr noundef %74, ptr noundef @.str.3)
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %79, label %77

77:                                               ; preds = %73
  %78 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -1, ptr %78, align 4, !tbaa !9
  br label %122

79:                                               ; preds = %73, %66
  %80 = load i32, ptr %31, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %88, label %82

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

86:                                               ; preds = %82
  %87 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -2, ptr %87, align 4, !tbaa !9
  br label %121

88:                                               ; preds = %82, %79
  %89 = load i32, ptr %38, align 4, !tbaa !9
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %97, label %91

91:                                               ; preds = %88
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = call i32 @lsame_(ptr noundef %92, ptr noundef @.str)
  %94 = icmp ne i32 %93, 0
  br i1 %94, label %97, label %95

95:                                               ; preds = %91
  %96 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -3, ptr %96, align 4, !tbaa !9
  br label %120

97:                                               ; preds = %91, %88
  %98 = load ptr, ptr %14, align 8, !tbaa !5
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = icmp slt i32 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %97
  %102 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -4, ptr %102, align 4, !tbaa !9
  br label %119

103:                                              ; preds = %97
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = load ptr, ptr %14, align 8, !tbaa !5
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = icmp sge i32 1, %107
  br i1 %108, label %109, label %110

109:                                              ; preds = %103
  br label %113

110:                                              ; preds = %103
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = load i32, ptr %111, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %110, %109
  %114 = phi i32 [ 1, %109 ], [ %112, %110 ]
  %115 = icmp slt i32 %105, %114
  br i1 %115, label %116, label %118

116:                                              ; preds = %113
  %117 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 -6, ptr %117, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %116, %113
  br label %119

119:                                              ; preds = %118, %101
  br label %120

120:                                              ; preds = %119, %95
  br label %121

121:                                              ; preds = %120, %86
  br label %122

122:                                              ; preds = %121, %77
  %123 = load ptr, ptr %20, align 8, !tbaa !5
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %131

126:                                              ; preds = %122
  %127 = load ptr, ptr %20, align 8, !tbaa !5
  %128 = load i32, ptr %127, align 4, !tbaa !9
  %129 = sub nsw i32 0, %128
  store i32 %129, ptr %23, align 4, !tbaa !9
  %130 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %23, i32 noundef 6)
  store i32 1, ptr %39, align 4
  br label %290

131:                                              ; preds = %122
  %132 = load ptr, ptr %14, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = icmp eq i32 %133, 0
  br i1 %134, label %135, label %137

135:                                              ; preds = %131
  %136 = load ptr, ptr %17, align 8, !tbaa !5
  store float 1.000000e+00, ptr %136, align 4, !tbaa !12
  store i32 1, ptr %39, align 4
  br label %290

137:                                              ; preds = %131
  %138 = load ptr, ptr %17, align 8, !tbaa !5
  store float 0.000000e+00, ptr %138, align 4, !tbaa !12
  %139 = call float @slamch_(ptr noundef @.str.6)
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = icmp sge i32 1, %141
  br i1 %142, label %143, label %144

143:                                              ; preds = %137
  br label %147

144:                                              ; preds = %137
  %145 = load ptr, ptr %14, align 8, !tbaa !5
  %146 = load i32, ptr %145, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %144, %143
  %148 = phi i32 [ 1, %143 ], [ %146, %144 ]
  %149 = sitofp i32 %148 to float
  %150 = fmul float %139, %149
  store float %150, ptr %37, align 4, !tbaa !12
  %151 = load ptr, ptr %11, align 8, !tbaa !5
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = load i32, ptr %22, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds %struct.complex, ptr %156, i64 %158
  %160 = load ptr, ptr %16, align 8, !tbaa !5
  %161 = load ptr, ptr %19, align 8, !tbaa !5
  %162 = getelementptr inbounds float, ptr %161, i64 1
  %163 = call float @clantr_(ptr noundef %151, ptr noundef %152, ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %159, ptr noundef %160, ptr noundef %162)
  store float %163, ptr %30, align 4, !tbaa !12
  %164 = load float, ptr %30, align 4, !tbaa !12
  %165 = fcmp ogt float %164, 0.000000e+00
  br i1 %165, label %166, label %288

166:                                              ; preds = %147
  store float 0.000000e+00, ptr %34, align 4, !tbaa !12
  %167 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  store i8 78, ptr %167, align 1, !tbaa !11
  %168 = load i32, ptr %35, align 4, !tbaa !9
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %171

170:                                              ; preds = %166
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %172

171:                                              ; preds = %166
  store i32 2, ptr %27, align 4, !tbaa !9
  br label %172

172:                                              ; preds = %171, %170
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %277, %172
  %174 = load ptr, ptr %14, align 8, !tbaa !5
  %175 = load ptr, ptr %18, align 8, !tbaa !5
  %176 = load ptr, ptr %14, align 8, !tbaa !5
  %177 = load i32, ptr %176, align 4, !tbaa !9
  %178 = add nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds %struct.complex, ptr %175, i64 %179
  %181 = load ptr, ptr %18, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.complex, ptr %181, i64 1
  %183 = getelementptr inbounds [3 x i32], ptr %29, i64 0, i64 0
  call void @clacn2_(ptr noundef %174, ptr noundef %180, ptr noundef %182, ptr noundef %34, ptr noundef %26, ptr noundef %183)
  %184 = load i32, ptr %26, align 4, !tbaa !9
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %278

186:                                              ; preds = %173
  %187 = load i32, ptr %26, align 4, !tbaa !9
  %188 = load i32, ptr %27, align 4, !tbaa !9
  %189 = icmp eq i32 %187, %188
  br i1 %189, label %190, label %205

190:                                              ; preds = %186
  %191 = load ptr, ptr %12, align 8, !tbaa !5
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = load ptr, ptr %15, align 8, !tbaa !5
  %196 = load i32, ptr %22, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds %struct.complex, ptr %195, i64 %197
  %199 = load ptr, ptr %16, align 8, !tbaa !5
  %200 = load ptr, ptr %18, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.complex, ptr %200, i64 1
  %202 = load ptr, ptr %19, align 8, !tbaa !5
  %203 = getelementptr inbounds float, ptr %202, i64 1
  %204 = load ptr, ptr %20, align 8, !tbaa !5
  call void @clatrs_(ptr noundef %191, ptr noundef @.str.7, ptr noundef %192, ptr noundef %193, ptr noundef %194, ptr noundef %198, ptr noundef %199, ptr noundef %201, ptr noundef %28, ptr noundef %203, ptr noundef %204)
  br label %220

205:                                              ; preds = %186
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  %208 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  %209 = load ptr, ptr %14, align 8, !tbaa !5
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = load i32, ptr %22, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds %struct.complex, ptr %210, i64 %212
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = load ptr, ptr %18, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.complex, ptr %215, i64 1
  %217 = load ptr, ptr %19, align 8, !tbaa !5
  %218 = getelementptr inbounds float, ptr %217, i64 1
  %219 = load ptr, ptr %20, align 8, !tbaa !5
  call void @clatrs_(ptr noundef %206, ptr noundef @.str.8, ptr noundef %207, ptr noundef %208, ptr noundef %209, ptr noundef %213, ptr noundef %214, ptr noundef %216, ptr noundef %28, ptr noundef %218, ptr noundef %219)
  br label %220

220:                                              ; preds = %205, %190
  %221 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  store i8 89, ptr %221, align 1, !tbaa !11
  %222 = load float, ptr %28, align 4, !tbaa !12
  %223 = fcmp une float %222, 1.000000e+00
  br i1 %223, label %224, label %277

224:                                              ; preds = %220
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.complex, ptr %226, i64 1
  %228 = call i32 @icamax_(ptr noundef %225, ptr noundef %227, ptr noundef @c__1)
  store i32 %228, ptr %33, align 4, !tbaa !9
  %229 = load i32, ptr %33, align 4, !tbaa !9
  store i32 %229, ptr %23, align 4, !tbaa !9
  %230 = load ptr, ptr %18, align 8, !tbaa !5
  %231 = load i32, ptr %23, align 4, !tbaa !9
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds %struct.complex, ptr %230, i64 %232
  %234 = getelementptr inbounds %struct.complex, ptr %233, i32 0, i32 0
  %235 = load float, ptr %234, align 4, !tbaa !14
  store float %235, ptr %24, align 4, !tbaa !12
  %236 = load float, ptr %24, align 4, !tbaa !12
  %237 = fcmp oge float %236, 0.000000e+00
  br i1 %237, label %238, label %240

238:                                              ; preds = %224
  %239 = load float, ptr %24, align 4, !tbaa !12
  br label %243

240:                                              ; preds = %224
  %241 = load float, ptr %24, align 4, !tbaa !12
  %242 = fneg float %241
  br label %243

243:                                              ; preds = %240, %238
  %244 = phi float [ %239, %238 ], [ %242, %240 ]
  %245 = load ptr, ptr %18, align 8, !tbaa !5
  %246 = load i32, ptr %33, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds %struct.complex, ptr %245, i64 %247
  %249 = call <2 x float> @Cf(ptr noundef %248)
  store <2 x float> %249, ptr %40, align 4
  %250 = getelementptr inbounds { float, float }, ptr %40, i32 0, i32 0
  %251 = load float, ptr %250, align 4
  %252 = getelementptr inbounds { float, float }, ptr %40, i32 0, i32 1
  %253 = load float, ptr %252, align 4
  store float %253, ptr %25, align 4, !tbaa !12
  %254 = load float, ptr %25, align 4, !tbaa !12
  %255 = fcmp oge float %254, 0.000000e+00
  br i1 %255, label %256, label %258

256:                                              ; preds = %243
  %257 = load float, ptr %25, align 4, !tbaa !12
  br label %261

258:                                              ; preds = %243
  %259 = load float, ptr %25, align 4, !tbaa !12
  %260 = fneg float %259
  br label %261

261:                                              ; preds = %258, %256
  %262 = phi float [ %257, %256 ], [ %260, %258 ]
  %263 = fadd float %244, %262
  store float %263, ptr %32, align 4, !tbaa !12
  %264 = load float, ptr %28, align 4, !tbaa !12
  %265 = load float, ptr %32, align 4, !tbaa !12
  %266 = load float, ptr %37, align 4, !tbaa !12
  %267 = fmul float %265, %266
  %268 = fcmp olt float %264, %267
  br i1 %268, label %272, label %269

269:                                              ; preds = %261
  %270 = load float, ptr %28, align 4, !tbaa !12
  %271 = fcmp oeq float %270, 0.000000e+00
  br i1 %271, label %272, label %273

272:                                              ; preds = %269, %261
  br label %289

273:                                              ; preds = %269
  %274 = load ptr, ptr %14, align 8, !tbaa !5
  %275 = load ptr, ptr %18, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.complex, ptr %275, i64 1
  call void @csrscl_(ptr noundef %274, ptr noundef %28, ptr noundef %276, ptr noundef @c__1)
  br label %277

277:                                              ; preds = %273, %220
  br label %173

278:                                              ; preds = %173
  %279 = load float, ptr %34, align 4, !tbaa !12
  %280 = fcmp une float %279, 0.000000e+00
  br i1 %280, label %281, label %287

281:                                              ; preds = %278
  %282 = load float, ptr %30, align 4, !tbaa !12
  %283 = fdiv float 1.000000e+00, %282
  %284 = load float, ptr %34, align 4, !tbaa !12
  %285 = fdiv float %283, %284
  %286 = load ptr, ptr %17, align 8, !tbaa !5
  store float %285, ptr %286, align 4, !tbaa !12
  br label %287

287:                                              ; preds = %281, %278
  br label %288

288:                                              ; preds = %287, %147
  br label %289

289:                                              ; preds = %288, %272
  store i32 1, ptr %39, align 4
  br label %290

290:                                              ; preds = %289, %135, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  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 4, 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 12, 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 4, 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
  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 @clantr_(ptr noundef, ptr noundef, 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 @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 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 @ctrcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr nocapture noundef writeonly %6, ptr noundef %7, ptr noundef %8, ptr noundef %9) local_unnamed_addr #0 {
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca [3 x i32], align 4
  %15 = alloca float, align 4
  %16 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #5
  %17 = getelementptr inbounds i8, ptr %7, i64 -8
  store i32 0, ptr %9, align 4, !tbaa !5
  %18 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #5
  %19 = load i8, ptr %0, align 1, !tbaa !9
  %20 = icmp eq i8 %19, 49
  br i1 %20, label %.thread, label %22

.thread:                                          ; preds = %10
  %21 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #5
  br label %27

22:                                               ; preds = %10
  %23 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #5
  %.not100 = icmp eq i32 %23, 0
  %24 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #5
  br i1 %.not100, label %25, label %27

25:                                               ; preds = %22
  %26 = tail call i32 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #5
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %.thread98.sink.split, label %27

27:                                               ; preds = %.thread, %25, %22
  %28 = phi i32 [ %21, %.thread ], [ %24, %25 ], [ %24, %22 ]
  %. = phi i32 [ 1, %.thread ], [ 2, %25 ], [ 1, %22 ]
  %.not91 = icmp eq i32 %18, 0
  br i1 %.not91, label %29, label %31

29:                                               ; preds = %27
  %30 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #5
  %.not92 = icmp eq i32 %30, 0
  br i1 %.not92, label %.thread98.sink.split, label %31

31:                                               ; preds = %29, %27
  %.not93 = icmp eq i32 %28, 0
  br i1 %.not93, label %32, label %34

32:                                               ; preds = %31
  %33 = tail call i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #5
  %.not94 = icmp eq i32 %33, 0
  br i1 %.not94, label %.thread98.sink.split, label %34

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

37:                                               ; preds = %34
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %35, i32 1)
  %39 = icmp slt i32 %38, %spec.select
  br i1 %39, label %.thread98.sink.split, label %40

40:                                               ; preds = %37
  %.pr = load i32, ptr %9, align 4, !tbaa !5
  %.not95 = icmp eq i32 %.pr, 0
  br i1 %.not95, label %44, label %.thread98

.thread98.sink.split:                             ; preds = %37, %34, %32, %29, %25
  %.sink = phi i32 [ -1, %25 ], [ -2, %29 ], [ -3, %32 ], [ -4, %34 ], [ -6, %37 ]
  store i32 %.sink, ptr %9, align 4, !tbaa !5
  br label %.thread98

.thread98:                                        ; preds = %.thread98.sink.split, %40
  %41 = phi i32 [ %.pr, %40 ], [ %.sink, %.thread98.sink.split ]
  %42 = sub nsw i32 0, %41
  store i32 %42, ptr %11, align 4, !tbaa !5
  %43 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %11, i32 noundef 6) #5
  br label %.loopexit

44:                                               ; preds = %40
  %45 = icmp eq i32 %35, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %44
  store float 1.000000e+00, ptr %6, align 4, !tbaa !10
  br label %.loopexit

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

56:                                               ; preds = %47
  store float 0.000000e+00, ptr %15, align 4, !tbaa !10
  store i8 78, ptr %16, align 1, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !5
  %57 = load i32, ptr %3, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %gep101 = getelementptr %struct.complex, ptr %7, i64 %58
  call void @clacn2_(ptr noundef nonnull %3, ptr noundef %gep101, ptr noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %12, ptr noundef nonnull %14) #5
  %59 = load i32, ptr %12, align 4, !tbaa !5
  %.not96102 = icmp eq i32 %59, 0
  br i1 %.not96102, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %56, %82
  %60 = phi i32 [ %85, %82 ], [ %59, %56 ]
  %61 = icmp eq i32 %60, %.
  %.str.7..str.8 = select i1 %61, ptr @.str.7, ptr @.str.8
  call void @clatrs_(ptr noundef %1, ptr noundef nonnull %.str.7..str.8, ptr noundef %2, ptr noundef nonnull %16, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %7, ptr noundef nonnull %13, ptr noundef %8, ptr noundef nonnull %9) #5
  store i8 89, ptr %16, align 1, !tbaa !9
  %62 = load float, ptr %13, align 4, !tbaa !10
  %63 = fcmp une float %62, 1.000000e+00
  br i1 %63, label %64, label %82

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

81:                                               ; preds = %64
  call void @csrscl_(ptr noundef nonnull %3, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #5
  br label %82

82:                                               ; preds = %81, %.lr.ph
  %83 = load i32, ptr %3, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %gep = getelementptr %struct.complex, ptr %7, i64 %84
  call void @clacn2_(ptr noundef nonnull %3, ptr noundef %gep, ptr noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %12, ptr noundef nonnull %14) #5
  %85 = load i32, ptr %12, align 4, !tbaa !5
  %.not96 = icmp eq i32 %85, 0
  br i1 %.not96, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %82, %56
  %86 = load float, ptr %15, align 4, !tbaa !10
  %87 = fcmp une float %86, 0.000000e+00
  br i1 %87, label %88, label %.loopexit

88:                                               ; preds = %._crit_edge
  %89 = fdiv float 1.000000e+00, %54
  %90 = fdiv float %89, %86
  store float %90, ptr %6, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %64, %._crit_edge, %88, %47, %46, %.thread98
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  ret void
}

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

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

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

declare float @slamch_(ptr noundef) local_unnamed_addr #2

declare float @clantr_(ptr noundef, ptr noundef, 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 @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 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #4

attributes #0 = { nounwind uwtable "min-legal-vector-width"="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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }

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

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