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

; 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

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

88:                                               ; preds = %15
  %89 = load ptr, ptr %16, align 8, !tbaa !5
  %90 = call i32 @lsame_(ptr noundef %89, ptr noundef @.str.2)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %94, label %92

92:                                               ; preds = %88
  %93 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 -1, ptr %93, align 4, !tbaa !9
  br label %167

94:                                               ; preds = %88, %15
  %95 = load i32, ptr %41, align 4, !tbaa !9
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %103, label %97

97:                                               ; preds = %94
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = call i32 @lsame_(ptr noundef %98, ptr noundef @.str.3)
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %103, label %101

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

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

107:                                              ; preds = %103
  %108 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 -3, ptr %108, align 4, !tbaa !9
  br label %165

109:                                              ; preds = %103
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = icmp slt i32 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %109
  %114 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 -4, ptr %114, align 4, !tbaa !9
  br label %164

115:                                              ; preds = %109
  %116 = load ptr, ptr %20, align 8, !tbaa !5
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = icmp slt i32 %117, 0
  br i1 %118, label %125, label %119

119:                                              ; preds = %115
  %120 = load ptr, ptr %20, align 8, !tbaa !5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = load ptr, ptr %19, align 8, !tbaa !5
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = icmp sgt i32 %121, %123
  br i1 %124, label %125, label %127

125:                                              ; preds = %119, %115
  %126 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 -5, ptr %126, align 4, !tbaa !9
  br label %163

127:                                              ; preds = %119
  %128 = load ptr, ptr %22, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  %133 = icmp slt i32 %129, %132
  br i1 %133, label %134, label %136

134:                                              ; preds = %127
  %135 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 -7, ptr %135, align 4, !tbaa !9
  br label %162

136:                                              ; preds = %127
  %137 = load ptr, ptr %24, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  %142 = icmp slt i32 %138, %141
  br i1 %142, label %143, label %145

143:                                              ; preds = %136
  %144 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 -9, ptr %144, align 4, !tbaa !9
  br label %161

145:                                              ; preds = %136
  %146 = load ptr, ptr %27, align 8, !tbaa !5
  %147 = load i32, ptr %146, align 4, !tbaa !9
  %148 = icmp slt i32 %147, 1
  br i1 %148, label %158, label %149

149:                                              ; preds = %145
  %150 = load i32, ptr %42, align 4, !tbaa !9
  %151 = icmp ne i32 %150, 0
  br i1 %151, label %152, label %160

152:                                              ; preds = %149
  %153 = load ptr, ptr %27, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = load ptr, ptr %18, align 8, !tbaa !5
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = icmp slt i32 %154, %156
  br i1 %157, label %158, label %160

158:                                              ; preds = %152, %145
  %159 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 -12, ptr %159, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %158, %152, %149
  br label %161

161:                                              ; preds = %160, %143
  br label %162

162:                                              ; preds = %161, %134
  br label %163

163:                                              ; preds = %162, %125
  br label %164

164:                                              ; preds = %163, %113
  br label %165

165:                                              ; preds = %164, %107
  br label %166

166:                                              ; preds = %165, %101
  br label %167

167:                                              ; preds = %166, %92
  %168 = load ptr, ptr %30, align 8, !tbaa !5
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %176

171:                                              ; preds = %167
  %172 = load ptr, ptr %30, align 8, !tbaa !5
  %173 = load i32, ptr %172, align 4, !tbaa !9
  %174 = sub nsw i32 0, %173
  store i32 %174, ptr %37, align 4, !tbaa !9
  %175 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %37, i32 noundef 6)
  store i32 1, ptr %44, align 4
  br label %292

176:                                              ; preds = %167
  %177 = load ptr, ptr %18, align 8, !tbaa !5
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %176
  store i32 1, ptr %44, align 4
  br label %292

181:                                              ; preds = %176
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  %183 = load ptr, ptr %18, align 8, !tbaa !5
  %184 = load ptr, ptr %20, align 8, !tbaa !5
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = load i32, ptr %34, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds %struct.complex, ptr %185, i64 %187
  %189 = load ptr, ptr %24, align 8, !tbaa !5
  %190 = load ptr, ptr %30, align 8, !tbaa !5
  call void @cpbstf_(ptr noundef %182, ptr noundef %183, ptr noundef %184, ptr noundef %188, ptr noundef %189, ptr noundef %190)
  %191 = load ptr, ptr %30, align 8, !tbaa !5
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %201

194:                                              ; preds = %181
  %195 = load ptr, ptr %18, align 8, !tbaa !5
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = load ptr, ptr %30, align 8, !tbaa !5
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = add nsw i32 %196, %198
  %200 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 %199, ptr %200, align 4, !tbaa !9
  store i32 1, ptr %44, align 4
  br label %292

201:                                              ; preds = %181
  store i32 1, ptr %38, align 4, !tbaa !9
  %202 = load i32, ptr %38, align 4, !tbaa !9
  %203 = load ptr, ptr %18, align 8, !tbaa !5
  %204 = load i32, ptr %203, align 4, !tbaa !9
  %205 = add nsw i32 %202, %204
  store i32 %205, ptr %43, align 4, !tbaa !9
  %206 = load ptr, ptr %16, align 8, !tbaa !5
  %207 = load ptr, ptr %17, align 8, !tbaa !5
  %208 = load ptr, ptr %18, align 8, !tbaa !5
  %209 = load ptr, ptr %19, align 8, !tbaa !5
  %210 = load ptr, ptr %20, align 8, !tbaa !5
  %211 = load ptr, ptr %21, align 8, !tbaa !5
  %212 = load i32, ptr %32, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds %struct.complex, ptr %211, i64 %213
  %215 = load ptr, ptr %22, align 8, !tbaa !5
  %216 = load ptr, ptr %23, align 8, !tbaa !5
  %217 = load i32, ptr %34, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds %struct.complex, ptr %216, i64 %218
  %220 = load ptr, ptr %24, align 8, !tbaa !5
  %221 = load ptr, ptr %26, align 8, !tbaa !5
  %222 = load i32, ptr %36, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds %struct.complex, ptr %221, i64 %223
  %225 = load ptr, ptr %27, align 8, !tbaa !5
  %226 = load ptr, ptr %28, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.complex, ptr %226, i64 1
  %228 = load ptr, ptr %29, align 8, !tbaa !5
  %229 = load i32, ptr %43, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds float, ptr %228, i64 %230
  call void @chbgst_(ptr noundef %206, ptr noundef %207, ptr noundef %208, ptr noundef %209, ptr noundef %210, ptr noundef %214, ptr noundef %215, ptr noundef %219, ptr noundef %220, ptr noundef %224, ptr noundef %225, ptr noundef %227, ptr noundef %231, ptr noundef %40)
  %232 = load i32, ptr %42, align 4, !tbaa !9
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %234, label %236

234:                                              ; preds = %201
  %235 = getelementptr inbounds [1 x i8], ptr %39, i64 0, i64 0
  store i8 85, ptr %235, align 1, !tbaa !11
  br label %238

236:                                              ; preds = %201
  %237 = getelementptr inbounds [1 x i8], ptr %39, i64 0, i64 0
  store i8 78, ptr %237, align 1, !tbaa !11
  br label %238

238:                                              ; preds = %236, %234
  %239 = getelementptr inbounds [1 x i8], ptr %39, i64 0, i64 0
  %240 = load ptr, ptr %17, align 8, !tbaa !5
  %241 = load ptr, ptr %18, align 8, !tbaa !5
  %242 = load ptr, ptr %19, align 8, !tbaa !5
  %243 = load ptr, ptr %21, align 8, !tbaa !5
  %244 = load i32, ptr %32, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds %struct.complex, ptr %243, i64 %245
  %247 = load ptr, ptr %22, align 8, !tbaa !5
  %248 = load ptr, ptr %25, align 8, !tbaa !5
  %249 = getelementptr inbounds float, ptr %248, i64 1
  %250 = load ptr, ptr %29, align 8, !tbaa !5
  %251 = load i32, ptr %38, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds float, ptr %250, i64 %252
  %254 = load ptr, ptr %26, align 8, !tbaa !5
  %255 = load i32, ptr %36, align 4, !tbaa !9
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds %struct.complex, ptr %254, i64 %256
  %258 = load ptr, ptr %27, align 8, !tbaa !5
  %259 = load ptr, ptr %28, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.complex, ptr %259, i64 1
  call void @chbtrd_(ptr noundef %239, ptr noundef %240, ptr noundef %241, ptr noundef %242, ptr noundef %246, ptr noundef %247, ptr noundef %249, ptr noundef %253, ptr noundef %257, ptr noundef %258, ptr noundef %260, ptr noundef %40)
  %261 = load i32, ptr %42, align 4, !tbaa !9
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %272, label %263

263:                                              ; preds = %238
  %264 = load ptr, ptr %18, align 8, !tbaa !5
  %265 = load ptr, ptr %25, align 8, !tbaa !5
  %266 = getelementptr inbounds float, ptr %265, i64 1
  %267 = load ptr, ptr %29, align 8, !tbaa !5
  %268 = load i32, ptr %38, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds float, ptr %267, i64 %269
  %271 = load ptr, ptr %30, align 8, !tbaa !5
  call void @ssterf_(ptr noundef %264, ptr noundef %266, ptr noundef %270, ptr noundef %271)
  br label %291

272:                                              ; preds = %238
  %273 = load ptr, ptr %16, align 8, !tbaa !5
  %274 = load ptr, ptr %18, align 8, !tbaa !5
  %275 = load ptr, ptr %25, align 8, !tbaa !5
  %276 = getelementptr inbounds float, ptr %275, i64 1
  %277 = load ptr, ptr %29, align 8, !tbaa !5
  %278 = load i32, ptr %38, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds float, ptr %277, i64 %279
  %281 = load ptr, ptr %26, align 8, !tbaa !5
  %282 = load i32, ptr %36, align 4, !tbaa !9
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds %struct.complex, ptr %281, i64 %283
  %285 = load ptr, ptr %27, align 8, !tbaa !5
  %286 = load ptr, ptr %29, align 8, !tbaa !5
  %287 = load i32, ptr %43, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds float, ptr %286, i64 %288
  %290 = load ptr, ptr %30, align 8, !tbaa !5
  call void @csteqr_(ptr noundef %273, ptr noundef %274, ptr noundef %276, ptr noundef %280, ptr noundef %284, ptr noundef %285, ptr noundef %289, ptr noundef %290)
  br label %291

291:                                              ; preds = %272, %263
  store i32 1, ptr %44, align 4
  br label %292

292:                                              ; preds = %291, %194, %180, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  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 void @cpbstf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare void @chbgst_(ptr noundef, ptr noundef, 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 @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

; 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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}


; 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"

@.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

; Function Attrs: nounwind uwtable
define dso_local void @chbgv_(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, ptr noundef %12, ptr noundef %13, ptr noundef %14) local_unnamed_addr #0 {
  %16 = alloca i32, align 4
  %17 = alloca [1 x i8], align 1
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #3
  %19 = getelementptr inbounds i8, ptr %13, i64 -4
  %20 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %21 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #3
  store i32 0, ptr %14, align 4, !tbaa !5
  %.not = icmp ne i32 %20, 0
  br i1 %.not, label %24, label %22

22:                                               ; preds = %15
  %23 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.2) #3
  %.not111 = icmp eq i32 %23, 0
  br i1 %.not111, label %.thread.sink.split, label %24

24:                                               ; preds = %22, %15
  %.not112 = icmp eq i32 %21, 0
  br i1 %.not112, label %25, label %27

25:                                               ; preds = %24
  %26 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.3) #3
  %.not113 = icmp eq i32 %26, 0
  br i1 %.not113, label %.thread.sink.split, label %27

27:                                               ; preds = %25, %24
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = icmp slt i32 %28, 0
  br i1 %29, label %.thread.sink.split, label %30

30:                                               ; preds = %27
  %31 = load i32, ptr %3, align 4, !tbaa !5
  %32 = icmp slt i32 %31, 0
  br i1 %32, label %.thread.sink.split, label %33

33:                                               ; preds = %30
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %or.cond = icmp ugt i32 %34, %31
  br i1 %or.cond, label %.thread.sink.split, label %35

35:                                               ; preds = %33
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %.not114 = icmp sgt i32 %36, %31
  br i1 %.not114, label %37, label %.thread.sink.split

37:                                               ; preds = %35
  %38 = load i32, ptr %8, align 4, !tbaa !5
  %.not115 = icmp sgt i32 %38, %34
  br i1 %.not115, label %39, label %.thread.sink.split

39:                                               ; preds = %37
  %40 = load i32, ptr %11, align 4, !tbaa !5
  %41 = icmp slt i32 %40, 1
  %42 = icmp ult i32 %40, %28
  %or.cond118 = and i1 %.not, %42
  %or.cond120 = or i1 %41, %or.cond118
  br i1 %or.cond120, label %.thread.sink.split, label %43

43:                                               ; preds = %39
  %.pr = load i32, ptr %14, align 4, !tbaa !5
  %.not116 = icmp eq i32 %.pr, 0
  br i1 %.not116, label %47, label %.thread

.thread.sink.split:                               ; preds = %39, %37, %35, %33, %30, %27, %25, %22
  %.sink = phi i32 [ -1, %22 ], [ -2, %25 ], [ -3, %27 ], [ -4, %30 ], [ -5, %33 ], [ -7, %35 ], [ -9, %37 ], [ -12, %39 ]
  store i32 %.sink, ptr %14, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %43
  %44 = phi i32 [ %.pr, %43 ], [ %.sink, %.thread.sink.split ]
  %45 = sub nsw i32 0, %44
  store i32 %45, ptr %16, align 4, !tbaa !5
  %46 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %16, i32 noundef 6) #3
  br label %60

47:                                               ; preds = %43
  %48 = icmp eq i32 %28, 0
  br i1 %48, label %60, label %49

49:                                               ; preds = %47
  tail call void @cpbstf_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %8, ptr noundef nonnull %14) #3
  %50 = load i32, ptr %14, align 4, !tbaa !5
  %.not117 = icmp eq i32 %50, 0
  %51 = load i32, ptr %2, align 4, !tbaa !5
  br i1 %.not117, label %54, label %52

52:                                               ; preds = %49
  %53 = add nsw i32 %51, %50
  store i32 %53, ptr %14, align 4, !tbaa !5
  br label %60

54:                                               ; preds = %49
  %55 = sext i32 %51 to i64
  %56 = getelementptr float, ptr %19, i64 %55
  %57 = getelementptr i8, ptr %56, i64 4
  call void @chbgst_(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %7, ptr noundef nonnull %8, ptr noundef %10, ptr noundef nonnull %11, ptr noundef %12, ptr noundef %57, ptr noundef nonnull %18) #3
  %. = select i1 %.not, i8 85, i8 78
  store i8 %., ptr %17, align 1, !tbaa !9
  call void @chbtrd_(ptr noundef nonnull %17, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %9, ptr noundef %13, ptr noundef %10, ptr noundef nonnull %11, ptr noundef %12, ptr noundef nonnull %18) #3
  br i1 %.not, label %59, label %58

58:                                               ; preds = %54
  call void @ssterf_(ptr noundef nonnull %2, ptr noundef %9, ptr noundef %13, ptr noundef nonnull %14) #3
  br label %60

59:                                               ; preds = %54
  call void @csteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %9, ptr noundef %13, ptr noundef %10, ptr noundef nonnull %11, ptr noundef %57, ptr noundef nonnull %14) #3
  br label %60

60:                                               ; preds = %58, %59, %47, %52, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #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 void @cpbstf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare void @chbgst_(ptr noundef, ptr noundef, 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 @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

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

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

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

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


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