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

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

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

106:                                              ; preds = %22
  %107 = load ptr, ptr %23, align 8, !tbaa !5
  %108 = call i32 @lsame_(ptr noundef %107, ptr noundef @.str.1)
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %112, label %110

110:                                              ; preds = %106
  %111 = load ptr, ptr %44, align 8, !tbaa !5
  store i32 -1, ptr %111, align 4, !tbaa !9
  br label %172

112:                                              ; preds = %106, %22
  %113 = load i32, ptr %53, align 4, !tbaa !9
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %125, label %115

115:                                              ; preds = %112
  %116 = load ptr, ptr %24, align 8, !tbaa !5
  %117 = call i32 @lsame_(ptr noundef %116, ptr noundef @.str.2)
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %125, label %119

119:                                              ; preds = %115
  %120 = load ptr, ptr %24, align 8, !tbaa !5
  %121 = call i32 @lsame_(ptr noundef %120, ptr noundef @.str.3)
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %125, label %123

123:                                              ; preds = %119
  %124 = load ptr, ptr %44, align 8, !tbaa !5
  store i32 -2, ptr %124, align 4, !tbaa !9
  br label %171

125:                                              ; preds = %119, %115, %112
  %126 = load ptr, ptr %25, align 8, !tbaa !5
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = icmp slt i32 %127, 0
  br i1 %128, label %129, label %131

129:                                              ; preds = %125
  %130 = load ptr, ptr %44, align 8, !tbaa !5
  store i32 -3, ptr %130, align 4, !tbaa !9
  br label %170

131:                                              ; preds = %125
  %132 = load ptr, ptr %26, align 8, !tbaa !5
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = icmp slt i32 %133, 0
  br i1 %134, label %135, label %137

135:                                              ; preds = %131
  %136 = load ptr, ptr %44, align 8, !tbaa !5
  store i32 -4, ptr %136, align 4, !tbaa !9
  br label %169

137:                                              ; preds = %131
  %138 = load ptr, ptr %36, align 8, !tbaa !5
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = load ptr, ptr %25, align 8, !tbaa !5
  %141 = load i32, ptr %140, align 4, !tbaa !9
  %142 = icmp sge i32 1, %141
  br i1 %142, label %143, label %144

143:                                              ; preds = %137
  br label %147

144:                                              ; preds = %137
  %145 = load ptr, ptr %25, align 8, !tbaa !5
  %146 = load i32, ptr %145, align 4, !tbaa !9
  br label %147

147:                                              ; preds = %144, %143
  %148 = phi i32 [ 1, %143 ], [ %146, %144 ]
  %149 = icmp slt i32 %139, %148
  br i1 %149, label %150, label %152

150:                                              ; preds = %147
  %151 = load ptr, ptr %44, align 8, !tbaa !5
  store i32 -14, ptr %151, align 4, !tbaa !9
  br label %168

152:                                              ; preds = %147
  %153 = load ptr, ptr %38, align 8, !tbaa !5
  %154 = load i32, ptr %153, align 4, !tbaa !9
  %155 = load ptr, ptr %25, align 8, !tbaa !5
  %156 = load i32, ptr %155, align 4, !tbaa !9
  %157 = icmp sge i32 1, %156
  br i1 %157, label %158, label %159

158:                                              ; preds = %152
  br label %162

159:                                              ; preds = %152
  %160 = load ptr, ptr %25, align 8, !tbaa !5
  %161 = load i32, ptr %160, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %159, %158
  %163 = phi i32 [ 1, %158 ], [ %161, %159 ]
  %164 = icmp slt i32 %154, %163
  br i1 %164, label %165, label %167

165:                                              ; preds = %162
  %166 = load ptr, ptr %44, align 8, !tbaa !5
  store i32 -16, ptr %166, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %165, %162
  br label %168

168:                                              ; preds = %167, %150
  br label %169

169:                                              ; preds = %168, %135
  br label %170

170:                                              ; preds = %169, %129
  br label %171

171:                                              ; preds = %170, %123
  br label %172

172:                                              ; preds = %171, %110
  %173 = load ptr, ptr %44, align 8, !tbaa !5
  %174 = load i32, ptr %173, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  br i1 %175, label %176, label %181

176:                                              ; preds = %172
  %177 = load ptr, ptr %44, align 8, !tbaa !5
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = sub nsw i32 0, %178
  store i32 %179, ptr %49, align 4, !tbaa !9
  %180 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %49, i32 noundef 6)
  store i32 1, ptr %54, align 4
  br label %339

181:                                              ; preds = %172
  %182 = load i32, ptr %52, align 4, !tbaa !9
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %227

184:                                              ; preds = %181
  %185 = load ptr, ptr %25, align 8, !tbaa !5
  %186 = load ptr, ptr %28, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.complex, ptr %186, i64 1
  %188 = load ptr, ptr %31, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.complex, ptr %188, i64 1
  call void @ccopy_(ptr noundef %185, ptr noundef %187, ptr noundef @c__1, ptr noundef %189, ptr noundef @c__1)
  %190 = load ptr, ptr %25, align 8, !tbaa !5
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = icmp sgt i32 %191, 1
  br i1 %192, label %193, label %208

193:                                              ; preds = %184
  %194 = load ptr, ptr %25, align 8, !tbaa !5
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = sub nsw i32 %195, 1
  store i32 %196, ptr %49, align 4, !tbaa !9
  %197 = load ptr, ptr %27, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.complex, ptr %197, i64 1
  %199 = load ptr, ptr %30, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.complex, ptr %199, i64 1
  call void @ccopy_(ptr noundef %49, ptr noundef %198, ptr noundef @c__1, ptr noundef %200, ptr noundef @c__1)
  %201 = load ptr, ptr %25, align 8, !tbaa !5
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = sub nsw i32 %202, 1
  store i32 %203, ptr %49, align 4, !tbaa !9
  %204 = load ptr, ptr %29, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.complex, ptr %204, i64 1
  %206 = load ptr, ptr %32, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.complex, ptr %206, i64 1
  call void @ccopy_(ptr noundef %49, ptr noundef %205, ptr noundef @c__1, ptr noundef %207, ptr noundef @c__1)
  br label %208

208:                                              ; preds = %193, %184
  %209 = load ptr, ptr %25, align 8, !tbaa !5
  %210 = load ptr, ptr %30, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.complex, ptr %210, i64 1
  %212 = load ptr, ptr %31, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.complex, ptr %212, i64 1
  %214 = load ptr, ptr %32, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.complex, ptr %214, i64 1
  %216 = load ptr, ptr %33, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.complex, ptr %216, i64 1
  %218 = load ptr, ptr %34, align 8, !tbaa !5
  %219 = getelementptr inbounds i32, ptr %218, i64 1
  %220 = load ptr, ptr %44, align 8, !tbaa !5
  call void @cgttrf_(ptr noundef %209, ptr noundef %211, ptr noundef %213, ptr noundef %215, ptr noundef %217, ptr noundef %219, ptr noundef %220)
  %221 = load ptr, ptr %44, align 8, !tbaa !5
  %222 = load i32, ptr %221, align 4, !tbaa !9
  %223 = icmp sgt i32 %222, 0
  br i1 %223, label %224, label %226

224:                                              ; preds = %208
  %225 = load ptr, ptr %39, align 8, !tbaa !5
  store float 0.000000e+00, ptr %225, align 4, !tbaa !11
  store i32 1, ptr %54, align 4
  br label %339

226:                                              ; preds = %208
  br label %227

227:                                              ; preds = %226, %181
  %228 = load i32, ptr %53, align 4, !tbaa !9
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %232

230:                                              ; preds = %227
  %231 = getelementptr inbounds [1 x i8], ptr %50, i64 0, i64 0
  store i8 49, ptr %231, align 1, !tbaa !13
  br label %234

232:                                              ; preds = %227
  %233 = getelementptr inbounds [1 x i8], ptr %50, i64 0, i64 0
  store i8 73, ptr %233, align 1, !tbaa !13
  br label %234

234:                                              ; preds = %232, %230
  %235 = getelementptr inbounds [1 x i8], ptr %50, i64 0, i64 0
  %236 = load ptr, ptr %25, align 8, !tbaa !5
  %237 = load ptr, ptr %27, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.complex, ptr %237, i64 1
  %239 = load ptr, ptr %28, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.complex, ptr %239, i64 1
  %241 = load ptr, ptr %29, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.complex, ptr %241, i64 1
  %243 = call float @clangt_(ptr noundef %235, ptr noundef %236, ptr noundef %238, ptr noundef %240, ptr noundef %242)
  store float %243, ptr %51, align 4, !tbaa !11
  %244 = getelementptr inbounds [1 x i8], ptr %50, i64 0, i64 0
  %245 = load ptr, ptr %25, align 8, !tbaa !5
  %246 = load ptr, ptr %30, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.complex, ptr %246, i64 1
  %248 = load ptr, ptr %31, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.complex, ptr %248, i64 1
  %250 = load ptr, ptr %32, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.complex, ptr %250, i64 1
  %252 = load ptr, ptr %33, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.complex, ptr %252, i64 1
  %254 = load ptr, ptr %34, align 8, !tbaa !5
  %255 = getelementptr inbounds i32, ptr %254, i64 1
  %256 = load ptr, ptr %39, align 8, !tbaa !5
  %257 = load ptr, ptr %42, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.complex, ptr %257, i64 1
  %259 = load ptr, ptr %44, align 8, !tbaa !5
  call void @cgtcon_(ptr noundef %244, ptr noundef %245, ptr noundef %247, ptr noundef %249, ptr noundef %251, ptr noundef %253, ptr noundef %255, ptr noundef %51, ptr noundef %256, ptr noundef %258, ptr noundef %259)
  %260 = load ptr, ptr %25, align 8, !tbaa !5
  %261 = load ptr, ptr %26, align 8, !tbaa !5
  %262 = load ptr, ptr %35, align 8, !tbaa !5
  %263 = load i32, ptr %46, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds %struct.complex, ptr %262, i64 %264
  %266 = load ptr, ptr %36, align 8, !tbaa !5
  %267 = load ptr, ptr %37, align 8, !tbaa !5
  %268 = load i32, ptr %48, align 4, !tbaa !9
  %269 = sext i32 %268 to i64
  %270 = getelementptr inbounds %struct.complex, ptr %267, i64 %269
  %271 = load ptr, ptr %38, align 8, !tbaa !5
  call void @clacpy_(ptr noundef @.str.5, ptr noundef %260, ptr noundef %261, ptr noundef %265, ptr noundef %266, ptr noundef %270, ptr noundef %271)
  %272 = load ptr, ptr %24, align 8, !tbaa !5
  %273 = load ptr, ptr %25, align 8, !tbaa !5
  %274 = load ptr, ptr %26, align 8, !tbaa !5
  %275 = load ptr, ptr %30, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.complex, ptr %275, i64 1
  %277 = load ptr, ptr %31, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.complex, ptr %277, i64 1
  %279 = load ptr, ptr %32, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.complex, ptr %279, i64 1
  %281 = load ptr, ptr %33, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.complex, ptr %281, i64 1
  %283 = load ptr, ptr %34, align 8, !tbaa !5
  %284 = getelementptr inbounds i32, ptr %283, i64 1
  %285 = load ptr, ptr %37, align 8, !tbaa !5
  %286 = load i32, ptr %48, align 4, !tbaa !9
  %287 = sext i32 %286 to i64
  %288 = getelementptr inbounds %struct.complex, ptr %285, i64 %287
  %289 = load ptr, ptr %38, align 8, !tbaa !5
  %290 = load ptr, ptr %44, align 8, !tbaa !5
  call void @cgttrs_(ptr noundef %272, ptr noundef %273, ptr noundef %274, ptr noundef %276, ptr noundef %278, ptr noundef %280, ptr noundef %282, ptr noundef %284, ptr noundef %288, ptr noundef %289, ptr noundef %290)
  %291 = load ptr, ptr %24, align 8, !tbaa !5
  %292 = load ptr, ptr %25, align 8, !tbaa !5
  %293 = load ptr, ptr %26, align 8, !tbaa !5
  %294 = load ptr, ptr %27, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.complex, ptr %294, i64 1
  %296 = load ptr, ptr %28, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.complex, ptr %296, i64 1
  %298 = load ptr, ptr %29, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.complex, ptr %298, i64 1
  %300 = load ptr, ptr %30, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.complex, ptr %300, i64 1
  %302 = load ptr, ptr %31, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.complex, ptr %302, i64 1
  %304 = load ptr, ptr %32, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.complex, ptr %304, i64 1
  %306 = load ptr, ptr %33, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.complex, ptr %306, i64 1
  %308 = load ptr, ptr %34, align 8, !tbaa !5
  %309 = getelementptr inbounds i32, ptr %308, i64 1
  %310 = load ptr, ptr %35, align 8, !tbaa !5
  %311 = load i32, ptr %46, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds %struct.complex, ptr %310, i64 %312
  %314 = load ptr, ptr %36, align 8, !tbaa !5
  %315 = load ptr, ptr %37, align 8, !tbaa !5
  %316 = load i32, ptr %48, align 4, !tbaa !9
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds %struct.complex, ptr %315, i64 %317
  %319 = load ptr, ptr %38, align 8, !tbaa !5
  %320 = load ptr, ptr %40, align 8, !tbaa !5
  %321 = getelementptr inbounds float, ptr %320, i64 1
  %322 = load ptr, ptr %41, align 8, !tbaa !5
  %323 = getelementptr inbounds float, ptr %322, i64 1
  %324 = load ptr, ptr %42, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.complex, ptr %324, i64 1
  %326 = load ptr, ptr %43, align 8, !tbaa !5
  %327 = getelementptr inbounds float, ptr %326, i64 1
  %328 = load ptr, ptr %44, align 8, !tbaa !5
  call void @cgtrfs_(ptr noundef %291, ptr noundef %292, ptr noundef %293, ptr noundef %295, ptr noundef %297, ptr noundef %299, ptr noundef %301, ptr noundef %303, ptr noundef %305, ptr noundef %307, ptr noundef %309, ptr noundef %313, ptr noundef %314, ptr noundef %318, ptr noundef %319, ptr noundef %321, ptr noundef %323, ptr noundef %325, ptr noundef %327, ptr noundef %328)
  %329 = load ptr, ptr %39, align 8, !tbaa !5
  %330 = load float, ptr %329, align 4, !tbaa !11
  %331 = call float @slamch_(ptr noundef @.str.6)
  %332 = fcmp olt float %330, %331
  br i1 %332, label %333, label %338

333:                                              ; preds = %234
  %334 = load ptr, ptr %25, align 8, !tbaa !5
  %335 = load i32, ptr %334, align 4, !tbaa !9
  %336 = add nsw i32 %335, 1
  %337 = load ptr, ptr %44, align 8, !tbaa !5
  store i32 %336, ptr %337, align 4, !tbaa !9
  br label %338

338:                                              ; preds = %333, %234
  store i32 1, ptr %54, align 4
  br label %339

339:                                              ; preds = %338, %224, %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %50) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #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 @ccopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @cgtsvx_(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, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21) local_unnamed_addr #0 {
  %23 = alloca i32, align 4
  %24 = alloca [1 x i8], align 1
  %25 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #4
  store i32 0, ptr %21, align 4, !tbaa !5
  %26 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %27 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #4
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %28, label %30

28:                                               ; preds = %22
  %29 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #4
  %.not125 = icmp eq i32 %29, 0
  br i1 %.not125, label %.thread.sink.split, label %30

30:                                               ; preds = %28, %22
  %.not126 = icmp eq i32 %27, 0
  br i1 %.not126, label %31, label %35

31:                                               ; preds = %30
  %32 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.2) #4
  %.not127 = icmp eq i32 %32, 0
  br i1 %.not127, label %33, label %35

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

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

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

41:                                               ; preds = %38
  %42 = load i32, ptr %13, align 4, !tbaa !5
  %spec.select = tail call i32 @llvm.umax.i32(i32 %36, i32 1)
  %43 = icmp slt i32 %42, %spec.select
  br i1 %43, label %.thread.sink.split, label %44

44:                                               ; preds = %41
  %45 = load i32, ptr %15, align 4, !tbaa !5
  %46 = icmp slt i32 %45, %spec.select
  br i1 %46, label %.thread.sink.split, label %47

47:                                               ; preds = %44
  %.pr = load i32, ptr %21, align 4, !tbaa !5
  %.not129 = icmp eq i32 %.pr, 0
  br i1 %.not129, label %51, label %.thread

.thread.sink.split:                               ; preds = %44, %41, %38, %35, %33, %28
  %.sink = phi i32 [ -1, %28 ], [ -2, %33 ], [ -3, %35 ], [ -4, %38 ], [ -14, %41 ], [ -16, %44 ]
  store i32 %.sink, ptr %21, align 4, !tbaa !5
  br label %.thread

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

51:                                               ; preds = %47
  br i1 %.not, label %63, label %52

52:                                               ; preds = %51
  tail call void @ccopy_(ptr noundef nonnull %2, ptr noundef %5, ptr noundef nonnull @c__1, ptr noundef %8, ptr noundef nonnull @c__1) #4
  %53 = load i32, ptr %2, align 4, !tbaa !5
  %54 = icmp sgt i32 %53, 1
  br i1 %54, label %55, label %59

55:                                               ; preds = %52
  %56 = add nsw i32 %53, -1
  store i32 %56, ptr %23, align 4, !tbaa !5
  call void @ccopy_(ptr noundef nonnull %23, ptr noundef %4, ptr noundef nonnull @c__1, ptr noundef %7, ptr noundef nonnull @c__1) #4
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = add nsw i32 %57, -1
  store i32 %58, ptr %23, align 4, !tbaa !5
  call void @ccopy_(ptr noundef nonnull %23, ptr noundef %6, ptr noundef nonnull @c__1, ptr noundef %9, ptr noundef nonnull @c__1) #4
  br label %59

59:                                               ; preds = %55, %52
  call void @cgttrf_(ptr noundef nonnull %2, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef nonnull %21) #4
  %60 = load i32, ptr %21, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  store float 0.000000e+00, ptr %16, align 4, !tbaa !9
  br label %71

63:                                               ; preds = %59, %51
  %. = select i1 %.not126, i8 73, i8 49
  store i8 %., ptr %24, align 1, !tbaa !11
  %64 = call float @clangt_(ptr noundef nonnull %24, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %5, ptr noundef %6) #4
  store float %64, ptr %25, align 4, !tbaa !9
  call void @cgtcon_(ptr noundef nonnull %24, ptr noundef nonnull %2, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef nonnull %25, ptr noundef %16, ptr noundef %19, ptr noundef nonnull %21) #4
  call void @clacpy_(ptr noundef nonnull @.str.5, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %12, ptr noundef nonnull %13, ptr noundef %14, ptr noundef nonnull %15) #4
  call void @cgttrs_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %14, ptr noundef nonnull %15, ptr noundef nonnull %21) #4
  call void @cgtrfs_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %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 nonnull %13, ptr noundef %14, ptr noundef nonnull %15, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef nonnull %21) #4
  %65 = load float, ptr %16, align 4, !tbaa !9
  %66 = call float @slamch_(ptr noundef nonnull @.str.6) #4
  %67 = fcmp olt float %65, %66
  br i1 %67, label %68, label %71

68:                                               ; preds = %63
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %21, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %63, %68, %62, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #4
  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 @ccopy_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare float @clangt_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare float @slamch_(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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

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


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