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

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

; Function Attrs: nounwind uwtable
define dso_local void @chbev_(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, ptr noundef %10, ptr noundef %11) #0 {
  %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 ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca 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 float, align 4
  %36 = alloca float, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca float, align 4
  %42 = alloca float, align 4
  %43 = alloca i32, align 4
  %44 = alloca float, align 4
  %45 = alloca float, align 4
  %46 = alloca i32, align 4
  store ptr %0, ptr %13, align 8, !tbaa !5
  store ptr %1, ptr %14, align 8, !tbaa !5
  store ptr %2, ptr %15, align 8, !tbaa !5
  store ptr %3, ptr %16, align 8, !tbaa !5
  store ptr %4, ptr %17, align 8, !tbaa !5
  store ptr %5, ptr %18, align 8, !tbaa !5
  store ptr %6, ptr %19, align 8, !tbaa !5
  store ptr %7, ptr %20, align 8, !tbaa !5
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  store ptr %11, ptr %24, align 8, !tbaa !5
  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 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 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 4, 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #4
  %47 = load ptr, ptr %18, align 8, !tbaa !5
  %48 = load i32, ptr %47, align 4, !tbaa !9
  store i32 %48, ptr %25, align 4, !tbaa !9
  %49 = load i32, ptr %25, align 4, !tbaa !9
  %50 = mul nsw i32 %49, 1
  %51 = add nsw i32 1, %50
  store i32 %51, ptr %26, align 4, !tbaa !9
  %52 = load i32, ptr %26, align 4, !tbaa !9
  %53 = load ptr, ptr %17, align 8, !tbaa !5
  %54 = sext i32 %52 to i64
  %55 = sub i64 0, %54
  %56 = getelementptr inbounds %struct.complex, ptr %53, i64 %55
  store ptr %56, ptr %17, align 8, !tbaa !5
  %57 = load ptr, ptr %19, align 8, !tbaa !5
  %58 = getelementptr inbounds float, ptr %57, i32 -1
  store ptr %58, ptr %19, align 8, !tbaa !5
  %59 = load ptr, ptr %21, align 8, !tbaa !5
  %60 = load i32, ptr %59, align 4, !tbaa !9
  store i32 %60, ptr %27, align 4, !tbaa !9
  %61 = load i32, ptr %27, align 4, !tbaa !9
  %62 = mul nsw i32 %61, 1
  %63 = add nsw i32 1, %62
  store i32 %63, ptr %28, align 4, !tbaa !9
  %64 = load i32, ptr %28, align 4, !tbaa !9
  %65 = load ptr, ptr %20, align 8, !tbaa !5
  %66 = sext i32 %64 to i64
  %67 = sub i64 0, %66
  %68 = getelementptr inbounds %struct.complex, ptr %65, i64 %67
  store ptr %68, ptr %20, align 8, !tbaa !5
  %69 = load ptr, ptr %22, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.complex, ptr %69, i32 -1
  store ptr %70, ptr %22, align 8, !tbaa !5
  %71 = load ptr, ptr %23, align 8, !tbaa !5
  %72 = getelementptr inbounds float, ptr %71, i32 -1
  store ptr %72, ptr %23, align 8, !tbaa !5
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = call i32 @lsame_(ptr noundef %73, ptr noundef @.str)
  store i32 %74, ptr %39, align 4, !tbaa !9
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = call i32 @lsame_(ptr noundef %75, ptr noundef @.str.1)
  store i32 %76, ptr %38, align 4, !tbaa !9
  %77 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 0, ptr %77, align 4, !tbaa !9
  %78 = load i32, ptr %39, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %86, label %80

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

84:                                               ; preds = %80
  %85 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -1, ptr %85, align 4, !tbaa !9
  br label %136

86:                                               ; preds = %80, %12
  %87 = load i32, ptr %38, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %95, label %89

89:                                               ; preds = %86
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = call i32 @lsame_(ptr noundef %90, ptr noundef @.str.3)
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %95, label %93

93:                                               ; preds = %89
  %94 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -2, ptr %94, align 4, !tbaa !9
  br label %135

95:                                               ; preds = %89, %86
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = icmp slt i32 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %95
  %100 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -3, ptr %100, align 4, !tbaa !9
  br label %134

101:                                              ; preds = %95
  %102 = load ptr, ptr %16, align 8, !tbaa !5
  %103 = load i32, ptr %102, align 4, !tbaa !9
  %104 = icmp slt i32 %103, 0
  br i1 %104, label %105, label %107

105:                                              ; preds = %101
  %106 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -4, ptr %106, align 4, !tbaa !9
  br label %133

107:                                              ; preds = %101
  %108 = load ptr, ptr %18, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !9
  %110 = load ptr, ptr %16, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = add nsw i32 %111, 1
  %113 = icmp slt i32 %109, %112
  br i1 %113, label %114, label %116

114:                                              ; preds = %107
  %115 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -6, ptr %115, align 4, !tbaa !9
  br label %132

116:                                              ; preds = %107
  %117 = load ptr, ptr %21, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  %119 = icmp slt i32 %118, 1
  br i1 %119, label %129, label %120

120:                                              ; preds = %116
  %121 = load i32, ptr %39, align 4, !tbaa !9
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %131

123:                                              ; preds = %120
  %124 = load ptr, ptr %21, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = load ptr, ptr %15, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = icmp slt i32 %125, %127
  br i1 %128, label %129, label %131

129:                                              ; preds = %123, %116
  %130 = load ptr, ptr %24, align 8, !tbaa !5
  store i32 -9, ptr %130, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %129, %123, %120
  br label %132

132:                                              ; preds = %131, %114
  br label %133

133:                                              ; preds = %132, %105
  br label %134

134:                                              ; preds = %133, %99
  br label %135

135:                                              ; preds = %134, %93
  br label %136

136:                                              ; preds = %135, %84
  %137 = load ptr, ptr %24, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %145

140:                                              ; preds = %136
  %141 = load ptr, ptr %24, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = sub nsw i32 0, %142
  store i32 %143, ptr %29, align 4, !tbaa !9
  %144 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %29, i32 noundef 6)
  store i32 1, ptr %46, align 4
  br label %351

145:                                              ; preds = %136
  %146 = load ptr, ptr %15, align 8, !tbaa !5
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = icmp eq i32 %147, 0
  br i1 %148, label %149, label %150

149:                                              ; preds = %145
  store i32 1, ptr %46, align 4
  br label %351

150:                                              ; preds = %145
  %151 = load ptr, ptr %15, align 8, !tbaa !5
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = icmp eq i32 %152, 1
  br i1 %153, label %154, label %199

154:                                              ; preds = %150
  %155 = load i32, ptr %38, align 4, !tbaa !9
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %168

157:                                              ; preds = %154
  %158 = load i32, ptr %25, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %29, align 4, !tbaa !9
  %160 = load ptr, ptr %17, align 8, !tbaa !5
  %161 = load i32, ptr %29, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds %struct.complex, ptr %160, i64 %162
  %164 = getelementptr inbounds %struct.complex, ptr %163, i32 0, i32 0
  %165 = load float, ptr %164, align 4, !tbaa !11
  %166 = load ptr, ptr %19, align 8, !tbaa !5
  %167 = getelementptr inbounds float, ptr %166, i64 1
  store float %165, ptr %167, align 4, !tbaa !14
  br label %182

168:                                              ; preds = %154
  %169 = load ptr, ptr %16, align 8, !tbaa !5
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = add nsw i32 %170, 1
  %172 = load i32, ptr %25, align 4, !tbaa !9
  %173 = add nsw i32 %171, %172
  store i32 %173, ptr %29, align 4, !tbaa !9
  %174 = load ptr, ptr %17, align 8, !tbaa !5
  %175 = load i32, ptr %29, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds %struct.complex, ptr %174, i64 %176
  %178 = getelementptr inbounds %struct.complex, ptr %177, i32 0, i32 0
  %179 = load float, ptr %178, align 4, !tbaa !11
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = getelementptr inbounds float, ptr %180, i64 1
  store float %179, ptr %181, align 4, !tbaa !14
  br label %182

182:                                              ; preds = %168, %157
  %183 = load i32, ptr %39, align 4, !tbaa !9
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %198

185:                                              ; preds = %182
  %186 = load i32, ptr %27, align 4, !tbaa !9
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %29, align 4, !tbaa !9
  %188 = load ptr, ptr %20, align 8, !tbaa !5
  %189 = load i32, ptr %29, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds %struct.complex, ptr %188, i64 %190
  %192 = getelementptr inbounds %struct.complex, ptr %191, i32 0, i32 0
  store float 1.000000e+00, ptr %192, align 4, !tbaa !11
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = load i32, ptr %29, align 4, !tbaa !9
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %struct.complex, ptr %193, i64 %195
  %197 = getelementptr inbounds %struct.complex, ptr %196, i32 0, i32 1
  store float 0.000000e+00, ptr %197, align 4, !tbaa !15
  br label %198

198:                                              ; preds = %185, %182
  store i32 1, ptr %46, align 4
  br label %351

199:                                              ; preds = %150
  %200 = call float @slamch_(ptr noundef @.str.5)
  store float %200, ptr %41, align 4, !tbaa !14
  %201 = call float @slamch_(ptr noundef @.str.6)
  store float %201, ptr %45, align 4, !tbaa !14
  %202 = load float, ptr %41, align 4, !tbaa !14
  %203 = load float, ptr %45, align 4, !tbaa !14
  %204 = fdiv float %202, %203
  store float %204, ptr %44, align 4, !tbaa !14
  %205 = load float, ptr %44, align 4, !tbaa !14
  %206 = fdiv float 1.000000e+00, %205
  store float %206, ptr %42, align 4, !tbaa !14
  %207 = load float, ptr %44, align 4, !tbaa !14
  %208 = fpext float %207 to double
  %209 = call double @sqrt(double noundef %208) #4
  %210 = fptrunc double %209 to float
  store float %210, ptr %34, align 4, !tbaa !14
  %211 = load float, ptr %42, align 4, !tbaa !14
  %212 = fpext float %211 to double
  %213 = call double @sqrt(double noundef %212) #4
  %214 = fptrunc double %213 to float
  store float %214, ptr %35, align 4, !tbaa !14
  %215 = load ptr, ptr %14, align 8, !tbaa !5
  %216 = load ptr, ptr %15, align 8, !tbaa !5
  %217 = load ptr, ptr %16, align 8, !tbaa !5
  %218 = load ptr, ptr %17, align 8, !tbaa !5
  %219 = load i32, ptr %26, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds %struct.complex, ptr %218, i64 %220
  %222 = load ptr, ptr %18, align 8, !tbaa !5
  %223 = load ptr, ptr %23, align 8, !tbaa !5
  %224 = getelementptr inbounds float, ptr %223, i64 1
  %225 = call float @clanhb_(ptr noundef @.str.7, ptr noundef %215, ptr noundef %216, ptr noundef %217, ptr noundef %221, ptr noundef %222, ptr noundef %224)
  store float %225, ptr %32, align 4, !tbaa !14
  store i32 0, ptr %40, align 4, !tbaa !9
  %226 = load float, ptr %32, align 4, !tbaa !14
  %227 = fcmp ogt float %226, 0.000000e+00
  br i1 %227, label %228, label %236

228:                                              ; preds = %199
  %229 = load float, ptr %32, align 4, !tbaa !14
  %230 = load float, ptr %34, align 4, !tbaa !14
  %231 = fcmp olt float %229, %230
  br i1 %231, label %232, label %236

232:                                              ; preds = %228
  store i32 1, ptr %40, align 4, !tbaa !9
  %233 = load float, ptr %34, align 4, !tbaa !14
  %234 = load float, ptr %32, align 4, !tbaa !14
  %235 = fdiv float %233, %234
  store float %235, ptr %36, align 4, !tbaa !14
  br label %245

236:                                              ; preds = %228, %199
  %237 = load float, ptr %32, align 4, !tbaa !14
  %238 = load float, ptr %35, align 4, !tbaa !14
  %239 = fcmp ogt float %237, %238
  br i1 %239, label %240, label %244

240:                                              ; preds = %236
  store i32 1, ptr %40, align 4, !tbaa !9
  %241 = load float, ptr %35, align 4, !tbaa !14
  %242 = load float, ptr %32, align 4, !tbaa !14
  %243 = fdiv float %241, %242
  store float %243, ptr %36, align 4, !tbaa !14
  br label %244

244:                                              ; preds = %240, %236
  br label %245

245:                                              ; preds = %244, %232
  %246 = load i32, ptr %40, align 4, !tbaa !9
  %247 = icmp eq i32 %246, 1
  br i1 %247, label %248, label %274

248:                                              ; preds = %245
  %249 = load i32, ptr %38, align 4, !tbaa !9
  %250 = icmp ne i32 %249, 0
  br i1 %250, label %251, label %262

251:                                              ; preds = %248
  %252 = load ptr, ptr %16, align 8, !tbaa !5
  %253 = load ptr, ptr %16, align 8, !tbaa !5
  %254 = load ptr, ptr %15, align 8, !tbaa !5
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = load ptr, ptr %17, align 8, !tbaa !5
  %257 = load i32, ptr %26, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds %struct.complex, ptr %256, i64 %258
  %260 = load ptr, ptr %18, align 8, !tbaa !5
  %261 = load ptr, ptr %24, align 8, !tbaa !5
  call void @clascl_(ptr noundef @.str.8, ptr noundef %252, ptr noundef %253, ptr noundef @c_b11, ptr noundef %36, ptr noundef %254, ptr noundef %255, ptr noundef %259, ptr noundef %260, ptr noundef %261)
  br label %273

262:                                              ; preds = %248
  %263 = load ptr, ptr %16, align 8, !tbaa !5
  %264 = load ptr, ptr %16, align 8, !tbaa !5
  %265 = load ptr, ptr %15, align 8, !tbaa !5
  %266 = load ptr, ptr %15, align 8, !tbaa !5
  %267 = load ptr, ptr %17, align 8, !tbaa !5
  %268 = load i32, ptr %26, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %struct.complex, ptr %267, i64 %269
  %271 = load ptr, ptr %18, align 8, !tbaa !5
  %272 = load ptr, ptr %24, align 8, !tbaa !5
  call void @clascl_(ptr noundef @.str.9, ptr noundef %263, ptr noundef %264, ptr noundef @c_b11, ptr noundef %36, ptr noundef %265, ptr noundef %266, ptr noundef %270, ptr noundef %271, ptr noundef %272)
  br label %273

273:                                              ; preds = %262, %251
  br label %274

274:                                              ; preds = %273, %245
  store i32 1, ptr %31, align 4, !tbaa !9
  %275 = load ptr, ptr %13, align 8, !tbaa !5
  %276 = load ptr, ptr %14, align 8, !tbaa !5
  %277 = load ptr, ptr %15, align 8, !tbaa !5
  %278 = load ptr, ptr %16, align 8, !tbaa !5
  %279 = load ptr, ptr %17, align 8, !tbaa !5
  %280 = load i32, ptr %26, align 4, !tbaa !9
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds %struct.complex, ptr %279, i64 %281
  %283 = load ptr, ptr %18, align 8, !tbaa !5
  %284 = load ptr, ptr %19, align 8, !tbaa !5
  %285 = getelementptr inbounds float, ptr %284, i64 1
  %286 = load ptr, ptr %23, align 8, !tbaa !5
  %287 = load i32, ptr %31, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds float, ptr %286, i64 %288
  %290 = load ptr, ptr %20, align 8, !tbaa !5
  %291 = load i32, ptr %28, align 4, !tbaa !9
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds %struct.complex, ptr %290, i64 %292
  %294 = load ptr, ptr %21, align 8, !tbaa !5
  %295 = load ptr, ptr %22, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.complex, ptr %295, i64 1
  call void @chbtrd_(ptr noundef %275, ptr noundef %276, ptr noundef %277, ptr noundef %278, ptr noundef %282, ptr noundef %283, ptr noundef %285, ptr noundef %289, ptr noundef %293, ptr noundef %294, ptr noundef %296, ptr noundef %37)
  %297 = load i32, ptr %39, align 4, !tbaa !9
  %298 = icmp ne i32 %297, 0
  br i1 %298, label %308, label %299

299:                                              ; preds = %274
  %300 = load ptr, ptr %15, align 8, !tbaa !5
  %301 = load ptr, ptr %19, align 8, !tbaa !5
  %302 = getelementptr inbounds float, ptr %301, i64 1
  %303 = load ptr, ptr %23, align 8, !tbaa !5
  %304 = load i32, ptr %31, align 4, !tbaa !9
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds float, ptr %303, i64 %305
  %307 = load ptr, ptr %24, align 8, !tbaa !5
  call void @ssterf_(ptr noundef %300, ptr noundef %302, ptr noundef %306, ptr noundef %307)
  br label %331

308:                                              ; preds = %274
  %309 = load i32, ptr %31, align 4, !tbaa !9
  %310 = load ptr, ptr %15, align 8, !tbaa !5
  %311 = load i32, ptr %310, align 4, !tbaa !9
  %312 = add nsw i32 %309, %311
  store i32 %312, ptr %43, align 4, !tbaa !9
  %313 = load ptr, ptr %13, align 8, !tbaa !5
  %314 = load ptr, ptr %15, align 8, !tbaa !5
  %315 = load ptr, ptr %19, align 8, !tbaa !5
  %316 = getelementptr inbounds float, ptr %315, i64 1
  %317 = load ptr, ptr %23, align 8, !tbaa !5
  %318 = load i32, ptr %31, align 4, !tbaa !9
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds float, ptr %317, i64 %319
  %321 = load ptr, ptr %20, align 8, !tbaa !5
  %322 = load i32, ptr %28, align 4, !tbaa !9
  %323 = sext i32 %322 to i64
  %324 = getelementptr inbounds %struct.complex, ptr %321, i64 %323
  %325 = load ptr, ptr %21, align 8, !tbaa !5
  %326 = load ptr, ptr %23, align 8, !tbaa !5
  %327 = load i32, ptr %43, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds float, ptr %326, i64 %328
  %330 = load ptr, ptr %24, align 8, !tbaa !5
  call void @csteqr_(ptr noundef %313, ptr noundef %314, ptr noundef %316, ptr noundef %320, ptr noundef %324, ptr noundef %325, ptr noundef %329, ptr noundef %330)
  br label %331

331:                                              ; preds = %308, %299
  %332 = load i32, ptr %40, align 4, !tbaa !9
  %333 = icmp eq i32 %332, 1
  br i1 %333, label %334, label %350

334:                                              ; preds = %331
  %335 = load ptr, ptr %24, align 8, !tbaa !5
  %336 = load i32, ptr %335, align 4, !tbaa !9
  %337 = icmp eq i32 %336, 0
  br i1 %337, label %338, label %341

338:                                              ; preds = %334
  %339 = load ptr, ptr %15, align 8, !tbaa !5
  %340 = load i32, ptr %339, align 4, !tbaa !9
  store i32 %340, ptr %33, align 4, !tbaa !9
  br label %345

341:                                              ; preds = %334
  %342 = load ptr, ptr %24, align 8, !tbaa !5
  %343 = load i32, ptr %342, align 4, !tbaa !9
  %344 = sub nsw i32 %343, 1
  store i32 %344, ptr %33, align 4, !tbaa !9
  br label %345

345:                                              ; preds = %341, %338
  %346 = load float, ptr %36, align 4, !tbaa !14
  %347 = fdiv float 1.000000e+00, %346
  store float %347, ptr %30, align 4, !tbaa !14
  %348 = load ptr, ptr %19, align 8, !tbaa !5
  %349 = getelementptr inbounds float, ptr %348, i64 1
  call void @sscal_(ptr noundef %33, ptr noundef %30, ptr noundef %349, ptr noundef @c__1)
  br label %350

350:                                              ; preds = %345, %331
  store i32 1, ptr %46, align 4
  br label %351

351:                                              ; preds = %350, %198, %149, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #4
  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 4, 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 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 4, ptr %25) #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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @chbev_(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, ptr noundef %10, ptr noundef %11) local_unnamed_addr #0 {
  %13 = alloca i32, align 4
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #3
  %18 = load i32, ptr %5, align 4, !tbaa !5
  %19 = add i32 %18, 1
  %narrow = xor i32 %18, -1
  %20 = sext i32 %narrow to i64
  %21 = getelementptr inbounds %struct.complex, ptr %4, i64 %20
  %22 = load i32, ptr %8, align 4, !tbaa !5
  %23 = add nsw i32 %22, 1
  %narrow142 = xor i32 %22, -1
  %24 = sext i32 %narrow142 to i64
  %25 = getelementptr inbounds %struct.complex, ptr %7, i64 %24
  %26 = getelementptr inbounds i8, ptr %10, i64 -4
  %27 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %28 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #3
  store i32 0, ptr %11, align 4, !tbaa !5
  %.not = icmp ne i32 %27, 0
  br i1 %.not, label %31, label %29

29:                                               ; preds = %12
  %30 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #3
  %.not133 = icmp eq i32 %30, 0
  br i1 %.not133, label %.thread.sink.split, label %31

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

32:                                               ; preds = %31
  %33 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #3
  %.not135 = icmp eq i32 %33, 0
  br i1 %.not135, label %.thread.sink.split, label %34

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

37:                                               ; preds = %34
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %.thread.sink.split, label %40

40:                                               ; preds = %37
  %41 = load i32, ptr %5, align 4, !tbaa !5
  %.not136 = icmp sgt i32 %41, %38
  br i1 %.not136, label %42, label %.thread.sink.split

42:                                               ; preds = %40
  %43 = load i32, ptr %8, align 4, !tbaa !5
  %44 = icmp slt i32 %43, 1
  %45 = icmp ult i32 %43, %35
  %or.cond = and i1 %.not, %45
  %or.cond148 = or i1 %44, %or.cond
  br i1 %or.cond148, label %.thread.sink.split, label %46

46:                                               ; preds = %42
  %.pr = load i32, ptr %11, align 4, !tbaa !5
  %.not137 = icmp eq i32 %.pr, 0
  br i1 %.not137, label %50, label %.thread

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

.thread:                                          ; preds = %.thread.sink.split, %46
  %47 = phi i32 [ %.pr, %46 ], [ %.sink, %.thread.sink.split ]
  %48 = sub nsw i32 0, %47
  store i32 %48, ptr %13, align 4, !tbaa !5
  %49 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %13, i32 noundef 6) #3
  br label %87

50:                                               ; preds = %46
  switch i32 %35, label %58 [
    i32 0, label %87
    i32 1, label %51
  ]

51:                                               ; preds = %50
  %52 = add i32 %19, %38
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds %struct.complex, ptr %21, i64 %53
  %storemerge141.in = select i1 %.not134, ptr %54, ptr %4
  %storemerge141 = load float, ptr %storemerge141.in, align 4, !tbaa !9
  store float %storemerge141, ptr %6, align 4, !tbaa !12
  br i1 %.not, label %55, label %87

55:                                               ; preds = %51
  store float 1.000000e+00, ptr %7, align 4, !tbaa !9
  %56 = sext i32 %23 to i64
  %57 = getelementptr inbounds %struct.complex, ptr %25, i64 %56, i32 1
  store float 0.000000e+00, ptr %57, align 4, !tbaa !13
  br label %87

58:                                               ; preds = %50
  %59 = tail call float @slamch_(ptr noundef nonnull @.str.5) #3
  %60 = tail call float @slamch_(ptr noundef nonnull @.str.6) #3
  %61 = fdiv float %59, %60
  %62 = fdiv float 1.000000e+00, %61
  %sqrtf = tail call float @sqrtf(float noundef %61) #4
  %sqrtf138 = tail call float @sqrtf(float noundef %62) #4
  %63 = tail call float @clanhb_(ptr noundef nonnull @.str.7, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %10) #3
  %64 = fcmp ogt float %63, 0.000000e+00
  %65 = fcmp olt float %63, %sqrtf
  %or.cond143 = select i1 %64, i1 %65, i1 false
  br i1 %or.cond143, label %.sink.split, label %66

66:                                               ; preds = %58
  %67 = fcmp ogt float %63, %sqrtf138
  br i1 %67, label %.sink.split, label %68

.sink.split:                                      ; preds = %66, %58
  %sqrtf138.pn = phi float [ %sqrtf, %58 ], [ %sqrtf138, %66 ]
  %storemerge147 = fdiv float %sqrtf138.pn, %63
  store float %storemerge147, ptr %16, align 4, !tbaa !12
  %.str.9..str.8 = select i1 %.not134, ptr @.str.9, ptr @.str.8
  call void @clascl_(ptr noundef nonnull %.str.9..str.8, ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef nonnull @c_b11, ptr noundef nonnull %16, ptr noundef nonnull %2, ptr noundef nonnull %2, ptr noundef %4, ptr noundef nonnull %5, ptr noundef nonnull %11) #3
  br label %68

68:                                               ; preds = %.sink.split, %66
  %69 = phi i1 [ false, %66 ], [ true, %.sink.split ]
  call void @chbtrd_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %10, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %9, ptr noundef nonnull %17) #3
  br i1 %.not, label %71, label %70

70:                                               ; preds = %68
  call void @ssterf_(ptr noundef nonnull %2, ptr noundef %6, ptr noundef %10, ptr noundef nonnull %11) #3
  br label %76

71:                                               ; preds = %68
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr float, ptr %26, i64 %73
  %75 = getelementptr i8, ptr %74, i64 4
  call void @csteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %6, ptr noundef %10, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %75, ptr noundef nonnull %11) #3
  br label %76

76:                                               ; preds = %71, %70
  br i1 %69, label %77, label %87

77:                                               ; preds = %76
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %82

80:                                               ; preds = %77
  %81 = load i32, ptr %2, align 4, !tbaa !5
  br label %84

82:                                               ; preds = %77
  %83 = add nsw i32 %78, -1
  br label %84

84:                                               ; preds = %82, %80
  %storemerge = phi i32 [ %83, %82 ], [ %81, %80 ]
  store i32 %storemerge, ptr %15, align 4, !tbaa !5
  %85 = load float, ptr %16, align 4, !tbaa !12
  %86 = fdiv float 1.000000e+00, %85
  store float %86, ptr %14, align 4, !tbaa !12
  call void @sscal_(ptr noundef nonnull %15, ptr noundef nonnull %14, ptr noundef %6, ptr noundef nonnull @c__1) #3
  br label %87

87:                                               ; preds = %76, %84, %51, %55, %50, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  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 @clanhb_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @clascl_(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 void @chbtrd_(ptr noundef, 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 void @ssterf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @sscal_(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

declare float @sqrtf(float) local_unnamed_addr

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass