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

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

60:                                               ; preds = %10
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = call i64 @lsame_(ptr noundef %61, ptr noundef @.str.1)
  %63 = icmp ne i64 %62, 0
  br label %64

64:                                               ; preds = %60, %10
  %65 = phi i1 [ true, %10 ], [ %63, %60 ]
  %66 = zext i1 %65 to i32
  %67 = sext i32 %66 to i64
  store i64 %67, ptr %36, align 8, !tbaa !9
  %68 = load ptr, ptr %14, align 8, !tbaa !5
  %69 = call i64 @lsame_(ptr noundef %68, ptr noundef @.str.2)
  store i64 %69, ptr %39, align 8, !tbaa !9
  %70 = load i64, ptr %36, align 8, !tbaa !9
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %78, label %72

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

76:                                               ; preds = %72
  %77 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -1, ptr %77, align 8, !tbaa !9
  br label %121

78:                                               ; preds = %72, %64
  %79 = load i64, ptr %33, align 8, !tbaa !9
  %80 = icmp ne i64 %79, 0
  br i1 %80, label %87, label %81

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

85:                                               ; preds = %81
  %86 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -2, ptr %86, align 8, !tbaa !9
  br label %120

87:                                               ; preds = %81, %78
  %88 = load i64, ptr %39, align 8, !tbaa !9
  %89 = icmp ne i64 %88, 0
  br i1 %89, label %96, label %90

90:                                               ; preds = %87
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = call i64 @lsame_(ptr noundef %91, ptr noundef @.str)
  %93 = icmp ne i64 %92, 0
  br i1 %93, label %96, label %94

94:                                               ; preds = %90
  %95 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -3, ptr %95, align 8, !tbaa !9
  br label %119

96:                                               ; preds = %90, %87
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = load i64, ptr %97, align 8, !tbaa !9
  %99 = icmp slt i64 %98, 0
  br i1 %99, label %100, label %102

100:                                              ; preds = %96
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -4, ptr %101, align 8, !tbaa !9
  br label %118

102:                                              ; preds = %96
  %103 = load ptr, ptr %17, align 8, !tbaa !5
  %104 = load i64, ptr %103, align 8, !tbaa !9
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = icmp sge i64 1, %106
  br i1 %107, label %108, label %109

108:                                              ; preds = %102
  br label %112

109:                                              ; preds = %102
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  %111 = load i64, ptr %110, align 8, !tbaa !9
  br label %112

112:                                              ; preds = %109, %108
  %113 = phi i64 [ 1, %108 ], [ %111, %109 ]
  %114 = icmp slt i64 %104, %113
  br i1 %114, label %115, label %117

115:                                              ; preds = %112
  %116 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -6, ptr %116, align 8, !tbaa !9
  br label %117

117:                                              ; preds = %115, %112
  br label %118

118:                                              ; preds = %117, %100
  br label %119

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

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

121:                                              ; preds = %120, %76
  %122 = load ptr, ptr %21, align 8, !tbaa !5
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = icmp ne i64 %123, 0
  br i1 %124, label %125, label %130

125:                                              ; preds = %121
  %126 = load ptr, ptr %21, align 8, !tbaa !5
  %127 = load i64, ptr %126, align 8, !tbaa !9
  %128 = sub nsw i64 0, %127
  store i64 %128, ptr %24, align 8, !tbaa !9
  %129 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %24)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %40, align 4
  br label %290

130:                                              ; preds = %121
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = load i64, ptr %131, align 8, !tbaa !9
  %133 = icmp eq i64 %132, 0
  br i1 %133, label %134, label %136

134:                                              ; preds = %130
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  store float 1.000000e+00, ptr %135, align 4, !tbaa !12
  store i32 0, ptr %11, align 4
  store i32 1, ptr %40, align 4
  br label %290

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

142:                                              ; preds = %136
  br label %146

143:                                              ; preds = %136
  %144 = load ptr, ptr %15, align 8, !tbaa !5
  %145 = load i64, ptr %144, align 8, !tbaa !9
  br label %146

146:                                              ; preds = %143, %142
  %147 = phi i64 [ 1, %142 ], [ %145, %143 ]
  %148 = sitofp i64 %147 to float
  %149 = fpext float %148 to double
  %150 = fmul double %138, %149
  %151 = fptrunc double %150 to float
  store float %151, ptr %38, align 4, !tbaa !12
  %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 %15, align 8, !tbaa !5
  %156 = load ptr, ptr %15, align 8, !tbaa !5
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = load i64, ptr %23, align 8, !tbaa !9
  %159 = getelementptr inbounds %struct.complex, ptr %157, i64 %158
  %160 = load ptr, ptr %17, align 8, !tbaa !5
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  %162 = getelementptr inbounds float, ptr %161, i64 1
  %163 = call double @clantr_(ptr noundef %152, ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %159, ptr noundef %160, ptr noundef %162)
  %164 = fptrunc double %163 to float
  store float %164, ptr %32, align 4, !tbaa !12
  %165 = load float, ptr %32, align 4, !tbaa !12
  %166 = fcmp ogt float %165, 0.000000e+00
  br i1 %166, label %167, label %288

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

171:                                              ; preds = %167
  store i64 1, ptr %29, align 8, !tbaa !9
  br label %173

172:                                              ; preds = %167
  store i64 2, ptr %29, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %172, %171
  store i64 0, ptr %28, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %277, %173
  %175 = load ptr, ptr %15, align 8, !tbaa !5
  %176 = load ptr, ptr %19, align 8, !tbaa !5
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = load i64, ptr %177, align 8, !tbaa !9
  %179 = add nsw i64 %178, 1
  %180 = getelementptr inbounds %struct.complex, ptr %176, i64 %179
  %181 = load ptr, ptr %19, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.complex, ptr %181, i64 1
  %183 = getelementptr inbounds [3 x i64], ptr %31, i64 0, i64 0
  %184 = call i32 @clacn2_(ptr noundef %175, ptr noundef %180, ptr noundef %182, ptr noundef %35, ptr noundef %28, ptr noundef %183)
  %185 = load i64, ptr %28, align 8, !tbaa !9
  %186 = icmp ne i64 %185, 0
  br i1 %186, label %187, label %278

187:                                              ; preds = %174
  %188 = load i64, ptr %28, align 8, !tbaa !9
  %189 = load i64, ptr %29, align 8, !tbaa !9
  %190 = icmp eq i64 %188, %189
  br i1 %190, label %191, label %206

191:                                              ; preds = %187
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = load ptr, ptr %14, align 8, !tbaa !5
  %194 = getelementptr inbounds [1 x i8], ptr %37, i64 0, i64 0
  %195 = load ptr, ptr %15, align 8, !tbaa !5
  %196 = load ptr, ptr %16, align 8, !tbaa !5
  %197 = load i64, ptr %23, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.complex, ptr %196, i64 %197
  %199 = load ptr, ptr %17, align 8, !tbaa !5
  %200 = load ptr, ptr %19, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.complex, ptr %200, i64 1
  %202 = load ptr, ptr %20, align 8, !tbaa !5
  %203 = getelementptr inbounds float, ptr %202, i64 1
  %204 = load ptr, ptr %21, align 8, !tbaa !5
  %205 = call i32 @clatrs_(ptr noundef %192, ptr noundef @.str.7, ptr noundef %193, ptr noundef %194, ptr noundef %195, ptr noundef %198, ptr noundef %199, ptr noundef %201, ptr noundef %30, ptr noundef %203, ptr noundef %204)
  br label %221

206:                                              ; preds = %187
  %207 = load ptr, ptr %13, align 8, !tbaa !5
  %208 = load ptr, ptr %14, align 8, !tbaa !5
  %209 = getelementptr inbounds [1 x i8], ptr %37, i64 0, i64 0
  %210 = load ptr, ptr %15, align 8, !tbaa !5
  %211 = load ptr, ptr %16, align 8, !tbaa !5
  %212 = load i64, ptr %23, align 8, !tbaa !9
  %213 = getelementptr inbounds %struct.complex, ptr %211, i64 %212
  %214 = load ptr, ptr %17, align 8, !tbaa !5
  %215 = load ptr, ptr %19, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.complex, ptr %215, i64 1
  %217 = load ptr, ptr %20, align 8, !tbaa !5
  %218 = getelementptr inbounds float, ptr %217, i64 1
  %219 = load ptr, ptr %21, align 8, !tbaa !5
  %220 = call i32 @clatrs_(ptr noundef %207, ptr noundef @.str.8, ptr noundef %208, ptr noundef %209, ptr noundef %210, ptr noundef %213, ptr noundef %214, ptr noundef %216, ptr noundef %30, ptr noundef %218, ptr noundef %219)
  br label %221

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

225:                                              ; preds = %221
  %226 = load ptr, ptr %15, align 8, !tbaa !5
  %227 = load ptr, ptr %19, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.complex, ptr %227, i64 1
  %229 = call i64 @f2c_icamax(ptr noundef %226, ptr noundef %228, ptr noundef @c__1)
  store i64 %229, ptr %27, align 8, !tbaa !9
  %230 = load i64, ptr %27, align 8, !tbaa !9
  store i64 %230, ptr %24, align 8, !tbaa !9
  %231 = load ptr, ptr %19, align 8, !tbaa !5
  %232 = load i64, ptr %24, align 8, !tbaa !9
  %233 = getelementptr inbounds %struct.complex, ptr %231, 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 %25, align 4, !tbaa !12
  %236 = load float, ptr %25, align 4, !tbaa !12
  %237 = fcmp oge float %236, 0.000000e+00
  br i1 %237, label %238, label %240

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

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

243:                                              ; preds = %240, %238
  %244 = phi float [ %239, %238 ], [ %242, %240 ]
  %245 = fpext float %244 to double
  %246 = load ptr, ptr %19, align 8, !tbaa !5
  %247 = load i64, ptr %27, align 8, !tbaa !9
  %248 = getelementptr inbounds %struct.complex, ptr %246, i64 %247
  %249 = call double @r_imag(ptr noundef %248)
  %250 = fptrunc double %249 to float
  store float %250, ptr %26, align 4, !tbaa !12
  %251 = load float, ptr %26, align 4, !tbaa !12
  %252 = fcmp oge float %251, 0.000000e+00
  br i1 %252, label %253, label %255

253:                                              ; preds = %243
  %254 = load float, ptr %26, align 4, !tbaa !12
  br label %258

255:                                              ; preds = %243
  %256 = load float, ptr %26, align 4, !tbaa !12
  %257 = fneg float %256
  br label %258

258:                                              ; preds = %255, %253
  %259 = phi float [ %254, %253 ], [ %257, %255 ]
  %260 = fpext float %259 to double
  %261 = fadd double %245, %260
  %262 = fptrunc double %261 to float
  store float %262, ptr %34, align 4, !tbaa !12
  %263 = load float, ptr %30, align 4, !tbaa !12
  %264 = load float, ptr %34, align 4, !tbaa !12
  %265 = load float, ptr %38, align 4, !tbaa !12
  %266 = fmul float %264, %265
  %267 = fcmp olt float %263, %266
  br i1 %267, label %271, label %268

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

271:                                              ; preds = %268, %258
  br label %289

272:                                              ; preds = %268
  %273 = load ptr, ptr %15, align 8, !tbaa !5
  %274 = load ptr, ptr %19, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.complex, ptr %274, i64 1
  %276 = call i32 @csrscl_(ptr noundef %273, ptr noundef %30, ptr noundef %275, ptr noundef @c__1)
  br label %277

277:                                              ; preds = %272, %221
  br label %174

278:                                              ; preds = %174
  %279 = load float, ptr %35, 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 %32, align 4, !tbaa !12
  %283 = fdiv float 1.000000e+00, %282
  %284 = load float, ptr %35, align 4, !tbaa !12
  %285 = fdiv float %283, %284
  %286 = load ptr, ptr %18, 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, %146
  br label %289

289:                                              ; preds = %288, %271
  store i32 0, ptr %11, align 4
  store i32 1, ptr %40, align 4
  br label %290

290:                                              ; preds = %289, %134, %125
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 24, 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 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %291 = load i32, ptr %11, align 4
  ret i32 %291
}

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

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

declare double @r_imag(ptr noundef) #2

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!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 @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 i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca float, align 4
  %14 = alloca [3 x i64], align 16
  %15 = alloca float, align 4
  %16 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #4
  %17 = getelementptr inbounds i8, ptr %7, i64 -8
  store i64 0, ptr %9, align 8, !tbaa !5
  %18 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %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 i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #4
  br label %27

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

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

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

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

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

32:                                               ; preds = %31
  %33 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #4
  %.not95 = icmp eq i64 %33, 0
  br i1 %.not95, label %.thread99.sink.split, label %34

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

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

40:                                               ; preds = %37
  %.pr = load i64, ptr %9, align 8, !tbaa !5
  %.not96 = icmp eq i64 %.pr, 0
  br i1 %.not96, label %44, label %.thread99

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

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

44:                                               ; preds = %40
  %45 = icmp eq i64 %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 double @slamch_(ptr noundef nonnull @.str.6) #4
  %49 = load i64, ptr %3, align 8, !tbaa !5
  %50 = icmp slt i64 %49, 2
  %51 = uitofp nneg i64 %49 to float
  %52 = fpext float %51 to double
  %53 = select i1 %50, double 1.000000e+00, double %52
  %54 = fmul double %48, %53
  %55 = fptrunc double %54 to float
  %56 = tail call double @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) #4
  %57 = fptrunc double %56 to float
  %58 = fcmp ogt float %57, 0.000000e+00
  br i1 %58, label %59, label %.loopexit

59:                                               ; preds = %47
  store float 0.000000e+00, ptr %15, align 4, !tbaa !10
  store i8 78, ptr %16, align 1, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !5
  %60 = load i64, ptr %3, align 8, !tbaa !5
  %61 = getelementptr %struct.complex, ptr %7, i64 %60
  %62 = call i32 @clacn2_(ptr noundef nonnull %3, ptr noundef %61, ptr noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %12, ptr noundef nonnull %14) #4
  %63 = load i64, ptr %12, align 8, !tbaa !5
  %.not97102 = icmp eq i64 %63, 0
  br i1 %.not97102, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %59, %88
  %64 = phi i64 [ %92, %88 ], [ %63, %59 ]
  %65 = icmp eq i64 %64, %.
  %.str.7..str.8 = select i1 %65, ptr @.str.7, ptr @.str.8
  %66 = call i32 @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) #4
  store i8 89, ptr %16, align 1, !tbaa !9
  %67 = load float, ptr %13, align 4, !tbaa !10
  %68 = fcmp une float %67, 1.000000e+00
  br i1 %68, label %69, label %88

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

86:                                               ; preds = %69
  %87 = call i32 @csrscl_(ptr noundef nonnull %3, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #4
  br label %88

88:                                               ; preds = %86, %.lr.ph
  %89 = load i64, ptr %3, align 8, !tbaa !5
  %90 = getelementptr %struct.complex, ptr %7, i64 %89
  %91 = call i32 @clacn2_(ptr noundef nonnull %3, ptr noundef %90, ptr noundef %7, ptr noundef nonnull %15, ptr noundef nonnull %12, ptr noundef nonnull %14) #4
  %92 = load i64, ptr %12, align 8, !tbaa !5
  %.not97 = icmp eq i64 %92, 0
  br i1 %.not97, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %88, %59
  %93 = load float, ptr %15, align 4, !tbaa !10
  %94 = fcmp une float %93, 0.000000e+00
  br i1 %94, label %95, label %.loopexit

95:                                               ; preds = %._crit_edge
  %96 = fdiv float 1.000000e+00, %57
  %97 = fdiv float %96, %93
  store float %97, ptr %6, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %69, %._crit_edge, %95, %47, %46, %.thread99
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  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 @clantr_(ptr noundef, ptr noundef, 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 @clatrs_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @r_imag(ptr noundef) local_unnamed_addr #2

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

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

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

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