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

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

88:                                               ; preds = %84
  %89 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -1, ptr %89, align 4, !tbaa !9
  br label %163

90:                                               ; preds = %84, %14
  %91 = load i32, ptr %39, align 4, !tbaa !9
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %99, label %93

93:                                               ; preds = %90
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  %95 = call i32 @lsame_(ptr noundef %94, ptr noundef @.str.3)
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %99, label %97

97:                                               ; preds = %93
  %98 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -2, ptr %98, align 4, !tbaa !9
  br label %162

99:                                               ; preds = %93, %90
  %100 = load ptr, ptr %17, align 8, !tbaa !5
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = icmp slt i32 %101, 0
  br i1 %102, label %103, label %105

103:                                              ; preds = %99
  %104 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -3, ptr %104, align 4, !tbaa !9
  br label %161

105:                                              ; preds = %99
  %106 = load ptr, ptr %18, align 8, !tbaa !5
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = icmp slt i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %105
  %110 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -4, ptr %110, align 4, !tbaa !9
  br label %160

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

115:                                              ; preds = %111
  %116 = load ptr, ptr %19, align 8, !tbaa !5
  %117 = load i32, ptr %116, align 4, !tbaa !9
  %118 = load ptr, ptr %18, align 8, !tbaa !5
  %119 = load i32, ptr %118, align 4, !tbaa !9
  %120 = icmp sgt i32 %117, %119
  br i1 %120, label %121, label %123

121:                                              ; preds = %115, %111
  %122 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -5, ptr %122, align 4, !tbaa !9
  br label %159

123:                                              ; preds = %115
  %124 = load ptr, ptr %21, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = add nsw i32 %127, 1
  %129 = icmp slt i32 %125, %128
  br i1 %129, label %130, label %132

130:                                              ; preds = %123
  %131 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -7, ptr %131, align 4, !tbaa !9
  br label %158

132:                                              ; preds = %123
  %133 = load ptr, ptr %23, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = load ptr, ptr %19, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  %138 = icmp slt i32 %134, %137
  br i1 %138, label %139, label %141

139:                                              ; preds = %132
  %140 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -9, ptr %140, align 4, !tbaa !9
  br label %157

141:                                              ; preds = %132
  %142 = load ptr, ptr %26, align 8, !tbaa !5
  %143 = load i32, ptr %142, align 4, !tbaa !9
  %144 = icmp slt i32 %143, 1
  br i1 %144, label %154, label %145

145:                                              ; preds = %141
  %146 = load i32, ptr %40, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %156

148:                                              ; preds = %145
  %149 = load ptr, ptr %26, align 8, !tbaa !5
  %150 = load i32, ptr %149, align 4, !tbaa !9
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = icmp slt i32 %150, %152
  br i1 %153, label %154, label %156

154:                                              ; preds = %148, %141
  %155 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 -12, ptr %155, align 4, !tbaa !9
  br label %156

156:                                              ; preds = %154, %148, %145
  br label %157

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

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

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

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

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

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

163:                                              ; preds = %162, %88
  %164 = load ptr, ptr %28, align 8, !tbaa !5
  %165 = load i32, ptr %164, align 4, !tbaa !9
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %172

167:                                              ; preds = %163
  %168 = load ptr, ptr %28, align 8, !tbaa !5
  %169 = load i32, ptr %168, align 4, !tbaa !9
  %170 = sub nsw i32 0, %169
  store i32 %170, ptr %35, align 4, !tbaa !9
  %171 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %35, i32 noundef 6)
  store i32 1, ptr %42, align 4
  br label %288

172:                                              ; preds = %163
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = load i32, ptr %173, align 4, !tbaa !9
  %175 = icmp eq i32 %174, 0
  br i1 %175, label %176, label %177

176:                                              ; preds = %172
  store i32 1, ptr %42, align 4
  br label %288

177:                                              ; preds = %172
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = load ptr, ptr %17, align 8, !tbaa !5
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = load ptr, ptr %22, align 8, !tbaa !5
  %182 = load i32, ptr %32, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  %185 = load ptr, ptr %23, align 8, !tbaa !5
  %186 = load ptr, ptr %28, align 8, !tbaa !5
  call void @dpbstf_(ptr noundef %178, ptr noundef %179, ptr noundef %180, ptr noundef %184, ptr noundef %185, ptr noundef %186)
  %187 = load ptr, ptr %28, align 8, !tbaa !5
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = icmp ne i32 %188, 0
  br i1 %189, label %190, label %197

190:                                              ; preds = %177
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = load i32, ptr %191, align 4, !tbaa !9
  %193 = load ptr, ptr %28, align 8, !tbaa !5
  %194 = load i32, ptr %193, align 4, !tbaa !9
  %195 = add nsw i32 %192, %194
  %196 = load ptr, ptr %28, align 8, !tbaa !5
  store i32 %195, ptr %196, align 4, !tbaa !9
  store i32 1, ptr %42, align 4
  br label %288

197:                                              ; preds = %177
  store i32 1, ptr %36, align 4, !tbaa !9
  %198 = load i32, ptr %36, align 4, !tbaa !9
  %199 = load ptr, ptr %17, align 8, !tbaa !5
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = add nsw i32 %198, %200
  store i32 %201, ptr %41, align 4, !tbaa !9
  %202 = load ptr, ptr %15, align 8, !tbaa !5
  %203 = load ptr, ptr %16, align 8, !tbaa !5
  %204 = load ptr, ptr %17, align 8, !tbaa !5
  %205 = load ptr, ptr %18, align 8, !tbaa !5
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  %207 = load ptr, ptr %20, align 8, !tbaa !5
  %208 = load i32, ptr %30, align 4, !tbaa !9
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds double, ptr %207, i64 %209
  %211 = load ptr, ptr %21, align 8, !tbaa !5
  %212 = load ptr, ptr %22, align 8, !tbaa !5
  %213 = load i32, ptr %32, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  %216 = load ptr, ptr %23, align 8, !tbaa !5
  %217 = load ptr, ptr %25, align 8, !tbaa !5
  %218 = load i32, ptr %34, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  %221 = load ptr, ptr %26, align 8, !tbaa !5
  %222 = load ptr, ptr %27, align 8, !tbaa !5
  %223 = load i32, ptr %41, align 4, !tbaa !9
  %224 = sext i32 %223 to i64
  %225 = getelementptr inbounds double, ptr %222, i64 %224
  call void @dsbgst_(ptr noundef %202, ptr noundef %203, ptr noundef %204, ptr noundef %205, ptr noundef %206, ptr noundef %210, ptr noundef %211, ptr noundef %215, ptr noundef %216, ptr noundef %220, ptr noundef %221, ptr noundef %225, ptr noundef %38)
  %226 = load i32, ptr %40, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %228, label %230

228:                                              ; preds = %197
  %229 = getelementptr inbounds [1 x i8], ptr %37, i64 0, i64 0
  store i8 85, ptr %229, align 1, !tbaa !11
  br label %232

230:                                              ; preds = %197
  %231 = getelementptr inbounds [1 x i8], ptr %37, i64 0, i64 0
  store i8 78, ptr %231, align 1, !tbaa !11
  br label %232

232:                                              ; preds = %230, %228
  %233 = getelementptr inbounds [1 x i8], ptr %37, i64 0, i64 0
  %234 = load ptr, ptr %16, align 8, !tbaa !5
  %235 = load ptr, ptr %17, align 8, !tbaa !5
  %236 = load ptr, ptr %18, align 8, !tbaa !5
  %237 = load ptr, ptr %20, align 8, !tbaa !5
  %238 = load i32, ptr %30, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds double, ptr %237, i64 %239
  %241 = load ptr, ptr %21, align 8, !tbaa !5
  %242 = load ptr, ptr %24, align 8, !tbaa !5
  %243 = getelementptr inbounds double, ptr %242, i64 1
  %244 = load ptr, ptr %27, align 8, !tbaa !5
  %245 = load i32, ptr %36, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds double, ptr %244, i64 %246
  %248 = load ptr, ptr %25, align 8, !tbaa !5
  %249 = load i32, ptr %34, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds double, ptr %248, i64 %250
  %252 = load ptr, ptr %26, align 8, !tbaa !5
  %253 = load ptr, ptr %27, align 8, !tbaa !5
  %254 = load i32, ptr %41, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds double, ptr %253, i64 %255
  call void @dsbtrd_(ptr noundef %233, ptr noundef %234, ptr noundef %235, ptr noundef %236, ptr noundef %240, ptr noundef %241, ptr noundef %243, ptr noundef %247, ptr noundef %251, ptr noundef %252, ptr noundef %256, ptr noundef %38)
  %257 = load i32, ptr %40, align 4, !tbaa !9
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %268, label %259

259:                                              ; preds = %232
  %260 = load ptr, ptr %17, align 8, !tbaa !5
  %261 = load ptr, ptr %24, align 8, !tbaa !5
  %262 = getelementptr inbounds double, ptr %261, i64 1
  %263 = load ptr, ptr %27, align 8, !tbaa !5
  %264 = load i32, ptr %36, align 4, !tbaa !9
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds double, ptr %263, i64 %265
  %267 = load ptr, ptr %28, align 8, !tbaa !5
  call void @dsterf_(ptr noundef %260, ptr noundef %262, ptr noundef %266, ptr noundef %267)
  br label %287

268:                                              ; preds = %232
  %269 = load ptr, ptr %15, align 8, !tbaa !5
  %270 = load ptr, ptr %17, align 8, !tbaa !5
  %271 = load ptr, ptr %24, align 8, !tbaa !5
  %272 = getelementptr inbounds double, ptr %271, i64 1
  %273 = load ptr, ptr %27, align 8, !tbaa !5
  %274 = load i32, ptr %36, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds double, ptr %273, i64 %275
  %277 = load ptr, ptr %25, align 8, !tbaa !5
  %278 = load i32, ptr %34, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds double, ptr %277, i64 %279
  %281 = load ptr, ptr %26, align 8, !tbaa !5
  %282 = load ptr, ptr %27, align 8, !tbaa !5
  %283 = load i32, ptr %41, align 4, !tbaa !9
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds double, ptr %282, i64 %284
  %286 = load ptr, ptr %28, align 8, !tbaa !5
  call void @dsteqr_(ptr noundef %269, ptr noundef %270, ptr noundef %272, ptr noundef %276, ptr noundef %280, ptr noundef %281, ptr noundef %285, ptr noundef %286)
  br label %287

287:                                              ; preds = %268, %259
  store i32 1, ptr %42, align 4
  br label %288

288:                                              ; preds = %287, %190, %176, %167
  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 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #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 @dpbstf_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

23:                                               ; preds = %21, %14
  %.not111 = icmp eq i32 %20, 0
  br i1 %.not111, label %24, label %26

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

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

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

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

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

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

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

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

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

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

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

48:                                               ; preds = %46
  tail call void @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 i32, ptr %13, align 4, !tbaa !5
  %.not116 = icmp eq i32 %49, 0
  %50 = load i32, ptr %2, align 4, !tbaa !5
  br i1 %.not116, label %53, label %51

51:                                               ; preds = %48
  %52 = add nsw i32 %50, %49
  store i32 %52, ptr %13, align 4, !tbaa !5
  br label %59

53:                                               ; preds = %48
  %54 = sext i32 %50 to i64
  %55 = getelementptr double, ptr %18, i64 %54
  %56 = getelementptr i8, ptr %55, i64 8
  call void @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 %56, ptr noundef nonnull %17) #3
  %. = select i1 %.not, i8 85, i8 78
  store i8 %., ptr %16, align 1, !tbaa !9
  call void @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 %56, ptr noundef nonnull %17) #3
  br i1 %.not, label %58, label %57

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

58:                                               ; preds = %53
  call void @dsteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %9, ptr noundef %12, ptr noundef %10, ptr noundef nonnull %11, ptr noundef %56, ptr noundef nonnull %13) #3
  br label %59

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

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

declare void @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 = !{!"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