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

83:                                               ; preds = %15
  %84 = load ptr, ptr %17, align 8, !tbaa !5
  %85 = call i64 @lsame_(ptr noundef %84, ptr noundef @.str.2)
  %86 = icmp ne i64 %85, 0
  br i1 %86, label %89, label %87

87:                                               ; preds = %83
  %88 = load ptr, ptr %31, align 8, !tbaa !5
  store i64 -1, ptr %88, align 8, !tbaa !9
  br label %162

89:                                               ; preds = %83, %15
  %90 = load i64, ptr %42, align 8, !tbaa !9
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %98, label %92

92:                                               ; preds = %89
  %93 = load ptr, ptr %18, align 8, !tbaa !5
  %94 = call i64 @lsame_(ptr noundef %93, ptr noundef @.str.3)
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %98, label %96

96:                                               ; preds = %92
  %97 = load ptr, ptr %31, align 8, !tbaa !5
  store i64 -2, ptr %97, align 8, !tbaa !9
  br label %161

98:                                               ; preds = %92, %89
  %99 = load ptr, ptr %19, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = icmp slt i64 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %98
  %103 = load ptr, ptr %31, align 8, !tbaa !5
  store i64 -3, ptr %103, align 8, !tbaa !9
  br label %160

104:                                              ; preds = %98
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  %106 = load i64, ptr %105, align 8, !tbaa !9
  %107 = icmp slt i64 %106, 0
  br i1 %107, label %108, label %110

108:                                              ; preds = %104
  %109 = load ptr, ptr %31, align 8, !tbaa !5
  store i64 -4, ptr %109, align 8, !tbaa !9
  br label %159

110:                                              ; preds = %104
  %111 = load ptr, ptr %21, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = icmp slt i64 %112, 0
  br i1 %113, label %120, label %114

114:                                              ; preds = %110
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  %116 = load i64, ptr %115, align 8, !tbaa !9
  %117 = load ptr, ptr %20, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = icmp sgt i64 %116, %118
  br i1 %119, label %120, label %122

120:                                              ; preds = %114, %110
  %121 = load ptr, ptr %31, align 8, !tbaa !5
  store i64 -5, ptr %121, align 8, !tbaa !9
  br label %158

122:                                              ; preds = %114
  %123 = load ptr, ptr %23, align 8, !tbaa !5
  %124 = load i64, ptr %123, align 8, !tbaa !9
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = add nsw i64 %126, 1
  %128 = icmp slt i64 %124, %127
  br i1 %128, label %129, label %131

129:                                              ; preds = %122
  %130 = load ptr, ptr %31, align 8, !tbaa !5
  store i64 -7, ptr %130, align 8, !tbaa !9
  br label %157

131:                                              ; preds = %122
  %132 = load ptr, ptr %25, align 8, !tbaa !5
  %133 = load i64, ptr %132, align 8, !tbaa !9
  %134 = load ptr, ptr %21, align 8, !tbaa !5
  %135 = load i64, ptr %134, align 8, !tbaa !9
  %136 = add nsw i64 %135, 1
  %137 = icmp slt i64 %133, %136
  br i1 %137, label %138, label %140

138:                                              ; preds = %131
  %139 = load ptr, ptr %31, align 8, !tbaa !5
  store i64 -9, ptr %139, align 8, !tbaa !9
  br label %156

140:                                              ; preds = %131
  %141 = load ptr, ptr %28, align 8, !tbaa !5
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = icmp slt i64 %142, 1
  br i1 %143, label %153, label %144

144:                                              ; preds = %140
  %145 = load i64, ptr %43, align 8, !tbaa !9
  %146 = icmp ne i64 %145, 0
  br i1 %146, label %147, label %155

147:                                              ; preds = %144
  %148 = load ptr, ptr %28, align 8, !tbaa !5
  %149 = load i64, ptr %148, align 8, !tbaa !9
  %150 = load ptr, ptr %19, align 8, !tbaa !5
  %151 = load i64, ptr %150, align 8, !tbaa !9
  %152 = icmp slt i64 %149, %151
  br i1 %152, label %153, label %155

153:                                              ; preds = %147, %140
  %154 = load ptr, ptr %31, align 8, !tbaa !5
  store i64 -12, ptr %154, align 8, !tbaa !9
  br label %155

155:                                              ; preds = %153, %147, %144
  br label %156

156:                                              ; preds = %155, %138
  br label %157

157:                                              ; preds = %156, %129
  br label %158

158:                                              ; preds = %157, %120
  br label %159

159:                                              ; preds = %158, %108
  br label %160

160:                                              ; preds = %159, %102
  br label %161

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

162:                                              ; preds = %161, %87
  %163 = load ptr, ptr %31, align 8, !tbaa !5
  %164 = load i64, ptr %163, align 8, !tbaa !9
  %165 = icmp ne i64 %164, 0
  br i1 %165, label %166, label %171

166:                                              ; preds = %162
  %167 = load ptr, ptr %31, align 8, !tbaa !5
  %168 = load i64, ptr %167, align 8, !tbaa !9
  %169 = sub nsw i64 0, %168
  store i64 %169, ptr %38, align 8, !tbaa !9
  %170 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %38)
  store i32 0, ptr %16, align 4
  store i32 1, ptr %45, align 4
  br label %280

171:                                              ; preds = %162
  %172 = load ptr, ptr %19, align 8, !tbaa !5
  %173 = load i64, ptr %172, align 8, !tbaa !9
  %174 = icmp eq i64 %173, 0
  br i1 %174, label %175, label %176

175:                                              ; preds = %171
  store i32 0, ptr %16, align 4
  store i32 1, ptr %45, align 4
  br label %280

176:                                              ; preds = %171
  %177 = load ptr, ptr %18, align 8, !tbaa !5
  %178 = load ptr, ptr %19, align 8, !tbaa !5
  %179 = load ptr, ptr %21, align 8, !tbaa !5
  %180 = load ptr, ptr %24, align 8, !tbaa !5
  %181 = load i64, ptr %35, align 8, !tbaa !9
  %182 = getelementptr inbounds %struct.complex, ptr %180, i64 %181
  %183 = load ptr, ptr %25, align 8, !tbaa !5
  %184 = load ptr, ptr %31, align 8, !tbaa !5
  %185 = call i32 @cpbstf_(ptr noundef %177, ptr noundef %178, ptr noundef %179, ptr noundef %182, ptr noundef %183, ptr noundef %184)
  %186 = load ptr, ptr %31, align 8, !tbaa !5
  %187 = load i64, ptr %186, align 8, !tbaa !9
  %188 = icmp ne i64 %187, 0
  br i1 %188, label %189, label %196

189:                                              ; preds = %176
  %190 = load ptr, ptr %19, align 8, !tbaa !5
  %191 = load i64, ptr %190, align 8, !tbaa !9
  %192 = load ptr, ptr %31, align 8, !tbaa !5
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = add nsw i64 %191, %193
  %195 = load ptr, ptr %31, align 8, !tbaa !5
  store i64 %194, ptr %195, align 8, !tbaa !9
  store i32 0, ptr %16, align 4
  store i32 1, ptr %45, align 4
  br label %280

196:                                              ; preds = %176
  store i64 1, ptr %39, align 8, !tbaa !9
  %197 = load i64, ptr %39, align 8, !tbaa !9
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  %199 = load i64, ptr %198, align 8, !tbaa !9
  %200 = add nsw i64 %197, %199
  store i64 %200, ptr %44, align 8, !tbaa !9
  %201 = load ptr, ptr %17, align 8, !tbaa !5
  %202 = load ptr, ptr %18, align 8, !tbaa !5
  %203 = load ptr, ptr %19, align 8, !tbaa !5
  %204 = load ptr, ptr %20, align 8, !tbaa !5
  %205 = load ptr, ptr %21, align 8, !tbaa !5
  %206 = load ptr, ptr %22, align 8, !tbaa !5
  %207 = load i64, ptr %33, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.complex, ptr %206, i64 %207
  %209 = load ptr, ptr %23, align 8, !tbaa !5
  %210 = load ptr, ptr %24, align 8, !tbaa !5
  %211 = load i64, ptr %35, align 8, !tbaa !9
  %212 = getelementptr inbounds %struct.complex, ptr %210, i64 %211
  %213 = load ptr, ptr %25, align 8, !tbaa !5
  %214 = load ptr, ptr %27, align 8, !tbaa !5
  %215 = load i64, ptr %37, align 8, !tbaa !9
  %216 = getelementptr inbounds %struct.complex, ptr %214, i64 %215
  %217 = load ptr, ptr %28, align 8, !tbaa !5
  %218 = load ptr, ptr %29, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.complex, ptr %218, i64 1
  %220 = load ptr, ptr %30, align 8, !tbaa !5
  %221 = load i64, ptr %44, align 8, !tbaa !9
  %222 = getelementptr inbounds float, ptr %220, i64 %221
  %223 = call i32 @chbgst_(ptr noundef %201, ptr noundef %202, ptr noundef %203, ptr noundef %204, ptr noundef %205, ptr noundef %208, ptr noundef %209, ptr noundef %212, ptr noundef %213, ptr noundef %216, ptr noundef %217, ptr noundef %219, ptr noundef %222, ptr noundef %41)
  %224 = load i64, ptr %43, align 8, !tbaa !9
  %225 = icmp ne i64 %224, 0
  br i1 %225, label %226, label %228

226:                                              ; preds = %196
  %227 = getelementptr inbounds [1 x i8], ptr %40, i64 0, i64 0
  store i8 85, ptr %227, align 1, !tbaa !11
  br label %230

228:                                              ; preds = %196
  %229 = getelementptr inbounds [1 x i8], ptr %40, i64 0, i64 0
  store i8 78, ptr %229, align 1, !tbaa !11
  br label %230

230:                                              ; preds = %228, %226
  %231 = getelementptr inbounds [1 x i8], ptr %40, i64 0, i64 0
  %232 = load ptr, ptr %18, align 8, !tbaa !5
  %233 = load ptr, ptr %19, align 8, !tbaa !5
  %234 = load ptr, ptr %20, align 8, !tbaa !5
  %235 = load ptr, ptr %22, align 8, !tbaa !5
  %236 = load i64, ptr %33, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.complex, ptr %235, i64 %236
  %238 = load ptr, ptr %23, align 8, !tbaa !5
  %239 = load ptr, ptr %26, align 8, !tbaa !5
  %240 = getelementptr inbounds float, ptr %239, i64 1
  %241 = load ptr, ptr %30, align 8, !tbaa !5
  %242 = load i64, ptr %39, align 8, !tbaa !9
  %243 = getelementptr inbounds float, ptr %241, i64 %242
  %244 = load ptr, ptr %27, align 8, !tbaa !5
  %245 = load i64, ptr %37, align 8, !tbaa !9
  %246 = getelementptr inbounds %struct.complex, ptr %244, i64 %245
  %247 = load ptr, ptr %28, align 8, !tbaa !5
  %248 = load ptr, ptr %29, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.complex, ptr %248, i64 1
  %250 = call i32 @chbtrd_(ptr noundef %231, ptr noundef %232, ptr noundef %233, ptr noundef %234, ptr noundef %237, ptr noundef %238, ptr noundef %240, ptr noundef %243, ptr noundef %246, ptr noundef %247, ptr noundef %249, ptr noundef %41)
  %251 = load i64, ptr %43, align 8, !tbaa !9
  %252 = icmp ne i64 %251, 0
  br i1 %252, label %262, label %253

253:                                              ; preds = %230
  %254 = load ptr, ptr %19, align 8, !tbaa !5
  %255 = load ptr, ptr %26, align 8, !tbaa !5
  %256 = getelementptr inbounds float, ptr %255, i64 1
  %257 = load ptr, ptr %30, align 8, !tbaa !5
  %258 = load i64, ptr %39, align 8, !tbaa !9
  %259 = getelementptr inbounds float, ptr %257, i64 %258
  %260 = load ptr, ptr %31, align 8, !tbaa !5
  %261 = call i32 @ssterf_(ptr noundef %254, ptr noundef %256, ptr noundef %259, ptr noundef %260)
  br label %279

262:                                              ; preds = %230
  %263 = load ptr, ptr %17, align 8, !tbaa !5
  %264 = load ptr, ptr %19, align 8, !tbaa !5
  %265 = load ptr, ptr %26, align 8, !tbaa !5
  %266 = getelementptr inbounds float, ptr %265, i64 1
  %267 = load ptr, ptr %30, align 8, !tbaa !5
  %268 = load i64, ptr %39, align 8, !tbaa !9
  %269 = getelementptr inbounds float, ptr %267, i64 %268
  %270 = load ptr, ptr %27, align 8, !tbaa !5
  %271 = load i64, ptr %37, align 8, !tbaa !9
  %272 = getelementptr inbounds %struct.complex, ptr %270, i64 %271
  %273 = load ptr, ptr %28, align 8, !tbaa !5
  %274 = load ptr, ptr %30, align 8, !tbaa !5
  %275 = load i64, ptr %44, align 8, !tbaa !9
  %276 = getelementptr inbounds float, ptr %274, i64 %275
  %277 = load ptr, ptr %31, align 8, !tbaa !5
  %278 = call i32 @csteqr_(ptr noundef %263, ptr noundef %264, ptr noundef %266, ptr noundef %269, ptr noundef %272, ptr noundef %273, ptr noundef %276, ptr noundef %277)
  br label %279

279:                                              ; preds = %262, %253
  store i32 0, ptr %16, align 4
  store i32 1, ptr %45, align 4
  br label %280

280:                                              ; preds = %279, %189, %175, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  %281 = load i32, ptr %16, align 4
  ret i32 %281
}

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

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

declare i32 @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 = !{!"long", !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 noundef i32 @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 i64, align 8
  %17 = alloca [1 x i8], align 1
  %18 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %18) #3
  %19 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  %20 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #3
  store i64 0, ptr %14, align 8, !tbaa !5
  %.not = icmp ne i64 %19, 0
  br i1 %.not, label %23, label %21

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

23:                                               ; preds = %21, %15
  %.not113 = icmp eq i64 %20, 0
  br i1 %.not113, label %24, label %26

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

26:                                               ; preds = %24, %23
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = icmp slt i64 %27, 0
  br i1 %28, label %.thread.sink.split, label %29

29:                                               ; preds = %26
  %30 = load i64, ptr %3, align 8, !tbaa !5
  %31 = icmp slt i64 %30, 0
  br i1 %31, label %.thread.sink.split, label %32

32:                                               ; preds = %29
  %33 = load i64, ptr %4, align 8, !tbaa !5
  %or.cond = icmp ugt i64 %33, %30
  br i1 %or.cond, label %.thread.sink.split, label %34

34:                                               ; preds = %32
  %35 = load i64, ptr %6, align 8, !tbaa !5
  %.not115 = icmp sgt i64 %35, %30
  br i1 %.not115, label %36, label %.thread.sink.split

36:                                               ; preds = %34
  %37 = load i64, ptr %8, align 8, !tbaa !5
  %.not116 = icmp sgt i64 %37, %33
  br i1 %.not116, label %38, label %.thread.sink.split

38:                                               ; preds = %36
  %39 = load i64, ptr %11, align 8, !tbaa !5
  %40 = icmp slt i64 %39, 1
  %41 = icmp ult i64 %39, %27
  %or.cond119 = and i1 %.not, %41
  %or.cond121 = or i1 %40, %or.cond119
  br i1 %or.cond121, label %.thread.sink.split, label %42

42:                                               ; preds = %38
  %.pr = load i64, ptr %14, align 8, !tbaa !5
  %.not117 = icmp eq i64 %.pr, 0
  br i1 %.not117, label %46, label %.thread

.thread.sink.split:                               ; preds = %38, %36, %34, %32, %29, %26, %24, %21
  %.sink = phi i64 [ -1, %21 ], [ -2, %24 ], [ -3, %26 ], [ -4, %29 ], [ -5, %32 ], [ -7, %34 ], [ -9, %36 ], [ -12, %38 ]
  store i64 %.sink, ptr %14, align 8, !tbaa !5
  br label %.thread

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

46:                                               ; preds = %42
  %47 = icmp eq i64 %27, 0
  br i1 %47, label %62, label %48

48:                                               ; preds = %46
  %49 = tail call i32 @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 i64, ptr %14, align 8, !tbaa !5
  %.not118 = icmp eq i64 %50, 0
  %51 = load i64, ptr %2, align 8, !tbaa !5
  br i1 %.not118, label %54, label %52

52:                                               ; preds = %48
  %53 = add nsw i64 %51, %50
  store i64 %53, ptr %14, align 8, !tbaa !5
  br label %62

54:                                               ; preds = %48
  %55 = getelementptr float, ptr %13, i64 %51
  %56 = call i32 @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 %55, ptr noundef nonnull %18) #3
  %. = select i1 %.not, i8 85, i8 78
  store i8 %., ptr %17, align 1, !tbaa !9
  %57 = call i32 @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 %60, label %58

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

60:                                               ; preds = %54
  %61 = call i32 @csteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %9, ptr noundef %13, ptr noundef %10, ptr noundef nonnull %11, ptr noundef %55, ptr noundef nonnull %14) #3
  br label %62

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

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

declare i32 @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 = !{!"long", !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,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass