; LLVM IR from niuyishuai/PDCABB :: LAPACK_BLAS/LAPACK (dsbgv)

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

@.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 @dsbgv_(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) #0 {
  %15 = alloca i32, align 4
  %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 i64, align 8
  %31 = alloca i64, 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 [1 x i8], align 1
  %39 = alloca i64, align 8
  %40 = alloca i64, align 8
  %41 = alloca i64, align 8
  %42 = alloca i64, align 8
  %43 = 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
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  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 1, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.start.p0(i64 8, 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
  %44 = load ptr, ptr %22, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  store i64 %45, ptr %30, align 8, !tbaa !9
  %46 = load i64, ptr %30, align 8, !tbaa !9
  %47 = add nsw i64 1, %46
  store i64 %47, ptr %31, align 8, !tbaa !9
  %48 = load i64, ptr %31, align 8, !tbaa !9
  %49 = load ptr, ptr %21, align 8, !tbaa !5
  %50 = sub i64 0, %48
  %51 = getelementptr inbounds double, ptr %49, i64 %50
  store ptr %51, ptr %21, align 8, !tbaa !5
  %52 = load ptr, ptr %24, align 8, !tbaa !5
  %53 = load i64, ptr %52, align 8, !tbaa !9
  store i64 %53, ptr %32, align 8, !tbaa !9
  %54 = load i64, ptr %32, align 8, !tbaa !9
  %55 = add nsw i64 1, %54
  store i64 %55, ptr %33, align 8, !tbaa !9
  %56 = load i64, ptr %33, align 8, !tbaa !9
  %57 = load ptr, ptr %23, align 8, !tbaa !5
  %58 = sub i64 0, %56
  %59 = getelementptr inbounds double, ptr %57, i64 %58
  store ptr %59, ptr %23, align 8, !tbaa !5
  %60 = load ptr, ptr %25, align 8, !tbaa !5
  %61 = getelementptr inbounds double, ptr %60, i32 -1
  store ptr %61, ptr %25, align 8, !tbaa !5
  %62 = load ptr, ptr %27, align 8, !tbaa !5
  %63 = load i64, ptr %62, align 8, !tbaa !9
  store i64 %63, ptr %34, align 8, !tbaa !9
  %64 = load i64, ptr %34, align 8, !tbaa !9
  %65 = add nsw i64 1, %64
  store i64 %65, ptr %35, align 8, !tbaa !9
  %66 = load i64, ptr %35, align 8, !tbaa !9
  %67 = load ptr, ptr %26, align 8, !tbaa !5
  %68 = sub i64 0, %66
  %69 = getelementptr inbounds double, ptr %67, i64 %68
  store ptr %69, ptr %26, align 8, !tbaa !5
  %70 = load ptr, ptr %28, align 8, !tbaa !5
  %71 = getelementptr inbounds double, ptr %70, i32 -1
  store ptr %71, ptr %28, align 8, !tbaa !5
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  %73 = call i64 @lsame_(ptr noundef %72, ptr noundef @.str)
  store i64 %73, ptr %41, align 8, !tbaa !9
  %74 = load ptr, ptr %17, align 8, !tbaa !5
  %75 = call i64 @lsame_(ptr noundef %74, ptr noundef @.str.1)
  store i64 %75, ptr %40, align 8, !tbaa !9
  %76 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 0, ptr %76, align 8, !tbaa !9
  %77 = load i64, ptr %41, align 8, !tbaa !9
  %78 = icmp ne i64 %77, 0
  br i1 %78, label %85, label %79

79:                                               ; preds = %14
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = call i64 @lsame_(ptr noundef %80, ptr noundef @.str.2)
  %82 = icmp ne i64 %81, 0
  br i1 %82, label %85, label %83

83:                                               ; preds = %79
  %84 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 -1, ptr %84, align 8, !tbaa !9
  br label %158

85:                                               ; preds = %79, %14
  %86 = load i64, ptr %40, align 8, !tbaa !9
  %87 = icmp ne i64 %86, 0
  br i1 %87, label %94, label %88

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

92:                                               ; preds = %88
  %93 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 -2, ptr %93, align 8, !tbaa !9
  br label %157

94:                                               ; preds = %88, %85
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = icmp slt i64 %96, 0
  br i1 %97, label %98, label %100

98:                                               ; preds = %94
  %99 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 -3, ptr %99, align 8, !tbaa !9
  br label %156

100:                                              ; preds = %94
  %101 = load ptr, ptr %19, align 8, !tbaa !5
  %102 = load i64, ptr %101, align 8, !tbaa !9
  %103 = icmp slt i64 %102, 0
  br i1 %103, label %104, label %106

104:                                              ; preds = %100
  %105 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 -4, ptr %105, align 8, !tbaa !9
  br label %155

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

110:                                              ; preds = %106
  %111 = load ptr, ptr %20, align 8, !tbaa !5
  %112 = load i64, ptr %111, align 8, !tbaa !9
  %113 = load ptr, ptr %19, align 8, !tbaa !5
  %114 = load i64, ptr %113, align 8, !tbaa !9
  %115 = icmp sgt i64 %112, %114
  br i1 %115, label %116, label %118

116:                                              ; preds = %110, %106
  %117 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 -5, ptr %117, align 8, !tbaa !9
  br label %154

118:                                              ; preds = %110
  %119 = load ptr, ptr %22, align 8, !tbaa !5
  %120 = load i64, ptr %119, align 8, !tbaa !9
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = add nsw i64 %122, 1
  %124 = icmp slt i64 %120, %123
  br i1 %124, label %125, label %127

125:                                              ; preds = %118
  %126 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 -7, ptr %126, align 8, !tbaa !9
  br label %153

127:                                              ; preds = %118
  %128 = load ptr, ptr %24, align 8, !tbaa !5
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = load ptr, ptr %20, align 8, !tbaa !5
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = add nsw i64 %131, 1
  %133 = icmp slt i64 %129, %132
  br i1 %133, label %134, label %136

134:                                              ; preds = %127
  %135 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 -9, ptr %135, align 8, !tbaa !9
  br label %152

136:                                              ; preds = %127
  %137 = load ptr, ptr %27, align 8, !tbaa !5
  %138 = load i64, ptr %137, align 8, !tbaa !9
  %139 = icmp slt i64 %138, 1
  br i1 %139, label %149, label %140

140:                                              ; preds = %136
  %141 = load i64, ptr %41, align 8, !tbaa !9
  %142 = icmp ne i64 %141, 0
  br i1 %142, label %143, label %151

143:                                              ; preds = %140
  %144 = load ptr, ptr %27, align 8, !tbaa !5
  %145 = load i64, ptr %144, align 8, !tbaa !9
  %146 = load ptr, ptr %18, align 8, !tbaa !5
  %147 = load i64, ptr %146, align 8, !tbaa !9
  %148 = icmp slt i64 %145, %147
  br i1 %148, label %149, label %151

149:                                              ; preds = %143, %136
  %150 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 -12, ptr %150, align 8, !tbaa !9
  br label %151

151:                                              ; preds = %149, %143, %140
  br label %152

152:                                              ; preds = %151, %134
  br label %153

153:                                              ; preds = %152, %125
  br label %154

154:                                              ; preds = %153, %116
  br label %155

155:                                              ; preds = %154, %104
  br label %156

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

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

158:                                              ; preds = %157, %83
  %159 = load ptr, ptr %29, align 8, !tbaa !5
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = icmp ne i64 %160, 0
  br i1 %161, label %162, label %167

162:                                              ; preds = %158
  %163 = load ptr, ptr %29, align 8, !tbaa !5
  %164 = load i64, ptr %163, align 8, !tbaa !9
  %165 = sub nsw i64 0, %164
  store i64 %165, ptr %36, align 8, !tbaa !9
  %166 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %36)
  store i32 0, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %275

167:                                              ; preds = %158
  %168 = load ptr, ptr %18, align 8, !tbaa !5
  %169 = load i64, ptr %168, align 8, !tbaa !9
  %170 = icmp eq i64 %169, 0
  br i1 %170, label %171, label %172

171:                                              ; preds = %167
  store i32 0, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %275

172:                                              ; preds = %167
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = load ptr, ptr %18, align 8, !tbaa !5
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = load ptr, ptr %23, align 8, !tbaa !5
  %177 = load i64, ptr %33, align 8, !tbaa !9
  %178 = getelementptr inbounds double, ptr %176, i64 %177
  %179 = load ptr, ptr %24, align 8, !tbaa !5
  %180 = load ptr, ptr %29, align 8, !tbaa !5
  %181 = call i32 @dpbstf_(ptr noundef %173, ptr noundef %174, ptr noundef %175, ptr noundef %178, ptr noundef %179, ptr noundef %180)
  %182 = load ptr, ptr %29, align 8, !tbaa !5
  %183 = load i64, ptr %182, align 8, !tbaa !9
  %184 = icmp ne i64 %183, 0
  br i1 %184, label %185, label %192

185:                                              ; preds = %172
  %186 = load ptr, ptr %18, align 8, !tbaa !5
  %187 = load i64, ptr %186, align 8, !tbaa !9
  %188 = load ptr, ptr %29, align 8, !tbaa !5
  %189 = load i64, ptr %188, align 8, !tbaa !9
  %190 = add nsw i64 %187, %189
  %191 = load ptr, ptr %29, align 8, !tbaa !5
  store i64 %190, ptr %191, align 8, !tbaa !9
  store i32 0, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %275

192:                                              ; preds = %172
  store i64 1, ptr %37, align 8, !tbaa !9
  %193 = load i64, ptr %37, align 8, !tbaa !9
  %194 = load ptr, ptr %18, align 8, !tbaa !5
  %195 = load i64, ptr %194, align 8, !tbaa !9
  %196 = add nsw i64 %193, %195
  store i64 %196, ptr %42, align 8, !tbaa !9
  %197 = load ptr, ptr %16, align 8, !tbaa !5
  %198 = load ptr, ptr %17, align 8, !tbaa !5
  %199 = load ptr, ptr %18, align 8, !tbaa !5
  %200 = load ptr, ptr %19, align 8, !tbaa !5
  %201 = load ptr, ptr %20, align 8, !tbaa !5
  %202 = load ptr, ptr %21, align 8, !tbaa !5
  %203 = load i64, ptr %31, align 8, !tbaa !9
  %204 = getelementptr inbounds double, ptr %202, i64 %203
  %205 = load ptr, ptr %22, align 8, !tbaa !5
  %206 = load ptr, ptr %23, align 8, !tbaa !5
  %207 = load i64, ptr %33, align 8, !tbaa !9
  %208 = getelementptr inbounds double, ptr %206, i64 %207
  %209 = load ptr, ptr %24, align 8, !tbaa !5
  %210 = load ptr, ptr %26, align 8, !tbaa !5
  %211 = load i64, ptr %35, align 8, !tbaa !9
  %212 = getelementptr inbounds double, ptr %210, i64 %211
  %213 = load ptr, ptr %27, align 8, !tbaa !5
  %214 = load ptr, ptr %28, align 8, !tbaa !5
  %215 = load i64, ptr %42, align 8, !tbaa !9
  %216 = getelementptr inbounds double, ptr %214, i64 %215
  %217 = call i32 @dsbgst_(ptr noundef %197, ptr noundef %198, ptr noundef %199, ptr noundef %200, ptr noundef %201, ptr noundef %204, ptr noundef %205, ptr noundef %208, ptr noundef %209, ptr noundef %212, ptr noundef %213, ptr noundef %216, ptr noundef %39)
  %218 = load i64, ptr %41, align 8, !tbaa !9
  %219 = icmp ne i64 %218, 0
  br i1 %219, label %220, label %222

220:                                              ; preds = %192
  %221 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  store i8 85, ptr %221, align 1, !tbaa !11
  br label %224

222:                                              ; preds = %192
  %223 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  store i8 78, ptr %223, align 1, !tbaa !11
  br label %224

224:                                              ; preds = %222, %220
  %225 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  %226 = load ptr, ptr %17, align 8, !tbaa !5
  %227 = load ptr, ptr %18, align 8, !tbaa !5
  %228 = load ptr, ptr %19, align 8, !tbaa !5
  %229 = load ptr, ptr %21, align 8, !tbaa !5
  %230 = load i64, ptr %31, align 8, !tbaa !9
  %231 = getelementptr inbounds double, ptr %229, i64 %230
  %232 = load ptr, ptr %22, align 8, !tbaa !5
  %233 = load ptr, ptr %25, align 8, !tbaa !5
  %234 = getelementptr inbounds double, ptr %233, i64 1
  %235 = load ptr, ptr %28, align 8, !tbaa !5
  %236 = load i64, ptr %37, align 8, !tbaa !9
  %237 = getelementptr inbounds double, ptr %235, i64 %236
  %238 = load ptr, ptr %26, align 8, !tbaa !5
  %239 = load i64, ptr %35, align 8, !tbaa !9
  %240 = getelementptr inbounds double, ptr %238, i64 %239
  %241 = load ptr, ptr %27, align 8, !tbaa !5
  %242 = load ptr, ptr %28, align 8, !tbaa !5
  %243 = load i64, ptr %42, align 8, !tbaa !9
  %244 = getelementptr inbounds double, ptr %242, i64 %243
  %245 = call i32 @dsbtrd_(ptr noundef %225, ptr noundef %226, ptr noundef %227, ptr noundef %228, ptr noundef %231, ptr noundef %232, ptr noundef %234, ptr noundef %237, ptr noundef %240, ptr noundef %241, ptr noundef %244, ptr noundef %39)
  %246 = load i64, ptr %41, align 8, !tbaa !9
  %247 = icmp ne i64 %246, 0
  br i1 %247, label %257, label %248

248:                                              ; preds = %224
  %249 = load ptr, ptr %18, align 8, !tbaa !5
  %250 = load ptr, ptr %25, align 8, !tbaa !5
  %251 = getelementptr inbounds double, ptr %250, i64 1
  %252 = load ptr, ptr %28, align 8, !tbaa !5
  %253 = load i64, ptr %37, align 8, !tbaa !9
  %254 = getelementptr inbounds double, ptr %252, i64 %253
  %255 = load ptr, ptr %29, align 8, !tbaa !5
  %256 = call i32 @dsterf_(ptr noundef %249, ptr noundef %251, ptr noundef %254, ptr noundef %255)
  br label %274

257:                                              ; preds = %224
  %258 = load ptr, ptr %16, align 8, !tbaa !5
  %259 = load ptr, ptr %18, align 8, !tbaa !5
  %260 = load ptr, ptr %25, align 8, !tbaa !5
  %261 = getelementptr inbounds double, ptr %260, i64 1
  %262 = load ptr, ptr %28, align 8, !tbaa !5
  %263 = load i64, ptr %37, align 8, !tbaa !9
  %264 = getelementptr inbounds double, ptr %262, i64 %263
  %265 = load ptr, ptr %26, align 8, !tbaa !5
  %266 = load i64, ptr %35, align 8, !tbaa !9
  %267 = getelementptr inbounds double, ptr %265, i64 %266
  %268 = load ptr, ptr %27, align 8, !tbaa !5
  %269 = load ptr, ptr %28, align 8, !tbaa !5
  %270 = load i64, ptr %42, align 8, !tbaa !9
  %271 = getelementptr inbounds double, ptr %269, i64 %270
  %272 = load ptr, ptr %29, align 8, !tbaa !5
  %273 = call i32 @dsteqr_(ptr noundef %258, ptr noundef %259, ptr noundef %261, ptr noundef %264, ptr noundef %267, ptr noundef %268, ptr noundef %271, ptr noundef %272)
  br label %274

274:                                              ; preds = %257, %248
  store i32 0, ptr %15, align 4
  store i32 1, ptr %43, align 4
  br label %275

275:                                              ; preds = %274, %185, %171, %162
  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 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 1, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  %276 = load i32, ptr %15, align 4
  ret i32 %276
}

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

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

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

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

22:                                               ; preds = %20, %14
  %.not112 = icmp eq i64 %19, 0
  br i1 %.not112, label %23, label %25

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

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

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

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

33:                                               ; preds = %31
  %34 = load i64, ptr %6, align 8, !tbaa !5
  %.not114 = icmp sgt i64 %34, %29
  br i1 %.not114, label %35, label %.thread.sink.split

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

37:                                               ; preds = %35
  %38 = load i64, ptr %11, align 8, !tbaa !5
  %39 = icmp slt i64 %38, 1
  %40 = icmp ult i64 %38, %26
  %or.cond118 = and i1 %.not, %40
  %or.cond120 = or i1 %39, %or.cond118
  br i1 %or.cond120, label %.thread.sink.split, label %41

41:                                               ; preds = %37
  %.pr = load i64, ptr %13, align 8, !tbaa !5
  %.not116 = icmp eq i64 %.pr, 0
  br i1 %.not116, label %45, label %.thread

.thread.sink.split:                               ; preds = %37, %35, %33, %31, %28, %25, %23, %20
  %.sink = phi i64 [ -1, %20 ], [ -2, %23 ], [ -3, %25 ], [ -4, %28 ], [ -5, %31 ], [ -7, %33 ], [ -9, %35 ], [ -12, %37 ]
  store i64 %.sink, ptr %13, align 8, !tbaa !5
  br label %.thread

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

45:                                               ; preds = %41
  %46 = icmp eq i64 %26, 0
  br i1 %46, label %61, label %47

47:                                               ; preds = %45
  %48 = tail call i32 @dpbstf_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef %7, ptr noundef nonnull %8, ptr noundef nonnull %13) #3
  %49 = load i64, ptr %13, align 8, !tbaa !5
  %.not117 = icmp eq i64 %49, 0
  %50 = load i64, ptr %2, align 8, !tbaa !5
  br i1 %.not117, label %53, label %51

51:                                               ; preds = %47
  %52 = add nsw i64 %50, %49
  store i64 %52, ptr %13, align 8, !tbaa !5
  br label %61

53:                                               ; preds = %47
  %54 = getelementptr double, ptr %12, i64 %50
  %55 = call i32 @dsbgst_(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 %54, ptr noundef nonnull %17) #3
  %. = select i1 %.not, i8 85, i8 78
  store i8 %., ptr %16, align 1, !tbaa !9
  %56 = call i32 @dsbtrd_(ptr noundef nonnull %16, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %9, ptr noundef %12, ptr noundef %10, ptr noundef nonnull %11, ptr noundef %54, ptr noundef nonnull %17) #3
  br i1 %.not, label %59, label %57

57:                                               ; preds = %53
  %58 = call i32 @dsterf_(ptr noundef nonnull %2, ptr noundef %9, ptr noundef %12, ptr noundef nonnull %13) #3
  br label %61

59:                                               ; preds = %53
  %60 = call i32 @dsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %9, ptr noundef %12, ptr noundef %10, ptr noundef nonnull %11, ptr noundef %54, ptr noundef nonnull %13) #3
  br label %61

61:                                               ; preds = %57, %59, %45, %51, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #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 @dpbstf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare i32 @dsteqr_(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