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

; 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
@c__1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__2 = external hidden global i32, align 4
@c__3 = external hidden global i32, align 4
@c__4 = external hidden global i32, align 4
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @chetrd_2stage_(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) #0 {
  %14 = alloca ptr, align 8
  %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 i32, align 4
  %28 = alloca i32, align 4
  %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 i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  store ptr %0, ptr %14, align 8, !tbaa !5
  store ptr %1, ptr %15, align 8, !tbaa !5
  store ptr %2, ptr %16, align 8, !tbaa !5
  store ptr %3, ptr %17, align 8, !tbaa !5
  store ptr %4, ptr %18, align 8, !tbaa !5
  store ptr %5, ptr %19, align 8, !tbaa !5
  store ptr %6, ptr %20, align 8, !tbaa !5
  store ptr %7, ptr %21, align 8, !tbaa !5
  store ptr %8, ptr %22, align 8, !tbaa !5
  store ptr %9, ptr %23, align 8, !tbaa !5
  store ptr %10, ptr %24, align 8, !tbaa !5
  store ptr %11, ptr %25, align 8, !tbaa !5
  store ptr %12, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  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 4, 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
  %42 = load ptr, ptr %18, align 8, !tbaa !5
  %43 = load i32, ptr %42, align 4, !tbaa !9
  store i32 %43, ptr %27, align 4, !tbaa !9
  %44 = load i32, ptr %27, align 4, !tbaa !9
  %45 = mul nsw i32 %44, 1
  %46 = add nsw i32 1, %45
  store i32 %46, ptr %28, align 4, !tbaa !9
  %47 = load i32, ptr %28, align 4, !tbaa !9
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = sext i32 %47 to i64
  %50 = sub i64 0, %49
  %51 = getelementptr inbounds %struct.complex, ptr %48, i64 %50
  store ptr %51, ptr %17, align 8, !tbaa !5
  %52 = load ptr, ptr %19, align 8, !tbaa !5
  %53 = getelementptr inbounds float, ptr %52, i32 -1
  store ptr %53, ptr %19, align 8, !tbaa !5
  %54 = load ptr, ptr %20, align 8, !tbaa !5
  %55 = getelementptr inbounds float, ptr %54, i32 -1
  store ptr %55, ptr %20, align 8, !tbaa !5
  %56 = load ptr, ptr %21, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.complex, ptr %56, i32 -1
  store ptr %57, ptr %21, align 8, !tbaa !5
  %58 = load ptr, ptr %22, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.complex, ptr %58, i32 -1
  store ptr %59, ptr %22, align 8, !tbaa !5
  %60 = load ptr, ptr %24, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.complex, ptr %60, i32 -1
  store ptr %61, ptr %24, align 8, !tbaa !5
  %62 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 0, ptr %62, align 4, !tbaa !9
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  %64 = call i32 @lsame_(ptr noundef %63, ptr noundef @.str)
  store i32 %64, ptr %36, align 4, !tbaa !9
  %65 = load ptr, ptr %15, align 8, !tbaa !5
  %66 = call i32 @lsame_(ptr noundef %65, ptr noundef @.str.1)
  store i32 %66, ptr %37, align 4, !tbaa !9
  %67 = load ptr, ptr %25, align 8, !tbaa !5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = icmp eq i32 %68, -1
  br i1 %69, label %74, label %70

70:                                               ; preds = %13
  %71 = load ptr, ptr %23, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = icmp eq i32 %72, -1
  br label %74

74:                                               ; preds = %70, %13
  %75 = phi i1 [ true, %13 ], [ %73, %70 ]
  %76 = zext i1 %75 to i32
  store i32 %76, ptr %40, align 4, !tbaa !9
  %77 = load ptr, ptr %14, align 8, !tbaa !5
  %78 = load ptr, ptr %16, align 8, !tbaa !5
  %79 = call i32 @ilaenv2stage_(ptr noundef @c__1, ptr noundef @.str.2, ptr noundef %77, ptr noundef %78, ptr noundef @c_n1, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %79, ptr %39, align 4, !tbaa !9
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = load ptr, ptr %16, align 8, !tbaa !5
  %82 = call i32 @ilaenv2stage_(ptr noundef @c__2, ptr noundef @.str.2, ptr noundef %80, ptr noundef %81, ptr noundef %39, ptr noundef @c_n1, ptr noundef @c_n1)
  store i32 %82, ptr %38, align 4, !tbaa !9
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = call i32 @ilaenv2stage_(ptr noundef @c__3, ptr noundef @.str.2, ptr noundef %83, ptr noundef %84, ptr noundef %39, ptr noundef %38, ptr noundef @c_n1)
  store i32 %85, ptr %34, align 4, !tbaa !9
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = call i32 @ilaenv2stage_(ptr noundef @c__4, ptr noundef @.str.2, ptr noundef %86, ptr noundef %87, ptr noundef %39, ptr noundef %38, ptr noundef @c_n1)
  store i32 %88, ptr %35, align 4, !tbaa !9
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = call i32 @lsame_(ptr noundef %89, ptr noundef @.str.3)
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %94, label %92

92:                                               ; preds = %74
  %93 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -1, ptr %93, align 4, !tbaa !9
  br label %149

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

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

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

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

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

109:                                              ; preds = %103
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = load ptr, ptr %16, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = icmp sge i32 1, %113
  br i1 %114, label %115, label %116

115:                                              ; preds = %109
  br label %119

116:                                              ; preds = %109
  %117 = load ptr, ptr %16, align 8, !tbaa !5
  %118 = load i32, ptr %117, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %116, %115
  %120 = phi i32 [ 1, %115 ], [ %118, %116 ]
  %121 = icmp slt i32 %111, %120
  br i1 %121, label %122, label %124

122:                                              ; preds = %119
  %123 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -5, ptr %123, align 4, !tbaa !9
  br label %146

124:                                              ; preds = %119
  %125 = load ptr, ptr %23, align 8, !tbaa !5
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = load i32, ptr %34, align 4, !tbaa !9
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %129, label %134

129:                                              ; preds = %124
  %130 = load i32, ptr %40, align 4, !tbaa !9
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %134, label %132

132:                                              ; preds = %129
  %133 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -10, ptr %133, align 4, !tbaa !9
  br label %145

134:                                              ; preds = %129, %124
  %135 = load ptr, ptr %25, align 8, !tbaa !5
  %136 = load i32, ptr %135, align 4, !tbaa !9
  %137 = load i32, ptr %35, align 4, !tbaa !9
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %139, label %144

139:                                              ; preds = %134
  %140 = load i32, ptr %40, align 4, !tbaa !9
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %144, label %142

142:                                              ; preds = %139
  %143 = load ptr, ptr %26, align 8, !tbaa !5
  store i32 -12, ptr %143, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %142, %139, %134
  br label %145

145:                                              ; preds = %144, %132
  br label %146

146:                                              ; preds = %145, %122
  br label %147

147:                                              ; preds = %146, %107
  br label %148

148:                                              ; preds = %147, %101
  br label %149

149:                                              ; preds = %148, %92
  %150 = load ptr, ptr %26, align 8, !tbaa !5
  %151 = load i32, ptr %150, align 4, !tbaa !9
  %152 = icmp eq i32 %151, 0
  br i1 %152, label %153, label %170

153:                                              ; preds = %149
  %154 = load i32, ptr %34, align 4, !tbaa !9
  %155 = sitofp i32 %154 to float
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.complex, ptr %156, i64 1
  %158 = getelementptr inbounds %struct.complex, ptr %157, i32 0, i32 0
  store float %155, ptr %158, align 4, !tbaa !11
  %159 = load ptr, ptr %22, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.complex, ptr %159, i64 1
  %161 = getelementptr inbounds %struct.complex, ptr %160, i32 0, i32 1
  store float 0.000000e+00, ptr %161, align 4, !tbaa !14
  %162 = load i32, ptr %35, align 4, !tbaa !9
  %163 = sitofp i32 %162 to float
  %164 = load ptr, ptr %24, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.complex, ptr %164, i64 1
  %166 = getelementptr inbounds %struct.complex, ptr %165, i32 0, i32 0
  store float %163, ptr %166, align 4, !tbaa !11
  %167 = load ptr, ptr %24, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.complex, ptr %167, i64 1
  %169 = getelementptr inbounds %struct.complex, ptr %168, i32 0, i32 1
  store float 0.000000e+00, ptr %169, align 4, !tbaa !14
  br label %170

170:                                              ; preds = %153, %149
  %171 = load ptr, ptr %26, align 8, !tbaa !5
  %172 = load i32, ptr %171, align 4, !tbaa !9
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %179

174:                                              ; preds = %170
  %175 = load ptr, ptr %26, align 8, !tbaa !5
  %176 = load i32, ptr %175, align 4, !tbaa !9
  %177 = sub nsw i32 0, %176
  store i32 %177, ptr %29, align 4, !tbaa !9
  %178 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %29, i32 noundef 13)
  store i32 1, ptr %41, align 4
  br label %282

179:                                              ; preds = %170
  %180 = load i32, ptr %40, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  store i32 1, ptr %41, align 4
  br label %282

183:                                              ; preds = %179
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr %16, align 8, !tbaa !5
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = icmp eq i32 %186, 0
  br i1 %187, label %188, label %195

188:                                              ; preds = %184
  %189 = load ptr, ptr %24, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.complex, ptr %189, i64 1
  %191 = getelementptr inbounds %struct.complex, ptr %190, i32 0, i32 0
  store float 1.000000e+00, ptr %191, align 4, !tbaa !11
  %192 = load ptr, ptr %24, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.complex, ptr %192, i64 1
  %194 = getelementptr inbounds %struct.complex, ptr %193, i32 0, i32 1
  store float 0.000000e+00, ptr %194, align 4, !tbaa !14
  store i32 1, ptr %41, align 4
  br label %282

195:                                              ; preds = %184
  %196 = load i32, ptr %39, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %30, align 4, !tbaa !9
  %198 = load ptr, ptr %25, align 8, !tbaa !5
  %199 = load i32, ptr %198, align 4, !tbaa !9
  %200 = load i32, ptr %30, align 4, !tbaa !9
  %201 = load ptr, ptr %16, align 8, !tbaa !5
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = mul nsw i32 %200, %202
  %204 = sub nsw i32 %199, %203
  store i32 %204, ptr %31, align 4, !tbaa !9
  store i32 1, ptr %33, align 4, !tbaa !9
  %205 = load i32, ptr %33, align 4, !tbaa !9
  %206 = load i32, ptr %30, align 4, !tbaa !9
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = mul nsw i32 %206, %208
  %210 = add nsw i32 %205, %209
  store i32 %210, ptr %32, align 4, !tbaa !9
  %211 = load ptr, ptr %15, align 8, !tbaa !5
  %212 = load ptr, ptr %16, align 8, !tbaa !5
  %213 = load ptr, ptr %17, align 8, !tbaa !5
  %214 = load i32, ptr %28, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds %struct.complex, ptr %213, i64 %215
  %217 = load ptr, ptr %18, align 8, !tbaa !5
  %218 = load ptr, ptr %24, align 8, !tbaa !5
  %219 = load i32, ptr %33, align 4, !tbaa !9
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds %struct.complex, ptr %218, i64 %220
  %222 = load ptr, ptr %21, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.complex, ptr %222, i64 1
  %224 = load ptr, ptr %24, align 8, !tbaa !5
  %225 = load i32, ptr %32, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds %struct.complex, ptr %224, i64 %226
  %228 = load ptr, ptr %26, align 8, !tbaa !5
  call void @chetrd_he2hb_(ptr noundef %211, ptr noundef %212, ptr noundef %39, ptr noundef %216, ptr noundef %217, ptr noundef %221, ptr noundef %30, ptr noundef %223, ptr noundef %227, ptr noundef %31, ptr noundef %228)
  %229 = load ptr, ptr %26, align 8, !tbaa !5
  %230 = load i32, ptr %229, align 4, !tbaa !9
  %231 = icmp ne i32 %230, 0
  br i1 %231, label %232, label %237

232:                                              ; preds = %195
  %233 = load ptr, ptr %26, align 8, !tbaa !5
  %234 = load i32, ptr %233, align 4, !tbaa !9
  %235 = sub nsw i32 0, %234
  store i32 %235, ptr %29, align 4, !tbaa !9
  %236 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %29, i32 noundef 12)
  store i32 1, ptr %41, align 4
  br label %282

237:                                              ; preds = %195
  %238 = load ptr, ptr %14, align 8, !tbaa !5
  %239 = load ptr, ptr %15, align 8, !tbaa !5
  %240 = load ptr, ptr %16, align 8, !tbaa !5
  %241 = load ptr, ptr %24, align 8, !tbaa !5
  %242 = load i32, ptr %33, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds %struct.complex, ptr %241, i64 %243
  %245 = load ptr, ptr %19, align 8, !tbaa !5
  %246 = getelementptr inbounds float, ptr %245, i64 1
  %247 = load ptr, ptr %20, align 8, !tbaa !5
  %248 = getelementptr inbounds float, ptr %247, i64 1
  %249 = load ptr, ptr %22, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.complex, ptr %249, i64 1
  %251 = load ptr, ptr %23, align 8, !tbaa !5
  %252 = load ptr, ptr %24, align 8, !tbaa !5
  %253 = load i32, ptr %32, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds %struct.complex, ptr %252, i64 %254
  %256 = load ptr, ptr %26, align 8, !tbaa !5
  call void @chetrd_hb2st_(ptr noundef @.str.6, ptr noundef %238, ptr noundef %239, ptr noundef %240, ptr noundef %39, ptr noundef %244, ptr noundef %30, ptr noundef %246, ptr noundef %248, ptr noundef %250, ptr noundef %251, ptr noundef %255, ptr noundef %31, ptr noundef %256)
  %257 = load ptr, ptr %26, align 8, !tbaa !5
  %258 = load i32, ptr %257, align 4, !tbaa !9
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %265

260:                                              ; preds = %237
  %261 = load ptr, ptr %26, align 8, !tbaa !5
  %262 = load i32, ptr %261, align 4, !tbaa !9
  %263 = sub nsw i32 0, %262
  store i32 %263, ptr %29, align 4, !tbaa !9
  %264 = call i32 @xerbla_(ptr noundef @.str.7, ptr noundef %29, i32 noundef 12)
  store i32 1, ptr %41, align 4
  br label %282

265:                                              ; preds = %237
  %266 = load i32, ptr %34, align 4, !tbaa !9
  %267 = sitofp i32 %266 to float
  %268 = load ptr, ptr %22, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.complex, ptr %268, i64 1
  %270 = getelementptr inbounds %struct.complex, ptr %269, i32 0, i32 0
  store float %267, ptr %270, align 4, !tbaa !11
  %271 = load ptr, ptr %22, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.complex, ptr %271, i64 1
  %273 = getelementptr inbounds %struct.complex, ptr %272, i32 0, i32 1
  store float 0.000000e+00, ptr %273, align 4, !tbaa !14
  %274 = load i32, ptr %35, align 4, !tbaa !9
  %275 = sitofp i32 %274 to float
  %276 = load ptr, ptr %24, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.complex, ptr %276, i64 1
  %278 = getelementptr inbounds %struct.complex, ptr %277, i32 0, i32 0
  store float %275, ptr %278, align 4, !tbaa !11
  %279 = load ptr, ptr %24, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.complex, ptr %279, i64 1
  %281 = getelementptr inbounds %struct.complex, ptr %280, i32 0, i32 1
  store float 0.000000e+00, ptr %281, align 4, !tbaa !14
  store i32 1, ptr %41, align 4
  br label %282

282:                                              ; preds = %265, %260, %232, %188, %182, %174
  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 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #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 @ilaenv2stage_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) #2

declare void @chetrd_he2hb_(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 @chetrd_hb2st_(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

; 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, !13, i64 0}
!12 = !{!"", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 4}


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

%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
@c__1 = external hidden global i32, align 4
@.str.2 = external hidden unnamed_addr constant [14 x i8], align 1
@c_n1 = external hidden global i32, align 4
@c__2 = external hidden global i32, align 4
@c__3 = external hidden global i32, align 4
@c__4 = external hidden global i32, align 4
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @chetrd_2stage_(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 nocapture noundef readonly %11, ptr noundef %12) local_unnamed_addr #0 {
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #4
  %19 = getelementptr inbounds i8, ptr %10, i64 -8
  store i32 0, ptr %12, align 4, !tbaa !5
  %20 = tail call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %21 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.1) #4
  %22 = load i32, ptr %11, align 4, !tbaa !5
  %23 = icmp eq i32 %22, -1
  br i1 %23, label %27, label %24

24:                                               ; preds = %13
  %25 = load i32, ptr %9, align 4, !tbaa !5
  %26 = icmp eq i32 %25, -1
  br label %27

27:                                               ; preds = %24, %13
  %28 = phi i1 [ true, %13 ], [ %26, %24 ]
  %29 = tail call i32 @ilaenv2stage_(ptr noundef nonnull @c__1, ptr noundef nonnull @.str.2, ptr noundef %0, ptr noundef %2, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #4
  store i32 %29, ptr %18, align 4, !tbaa !5
  %30 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__2, ptr noundef nonnull @.str.2, ptr noundef %0, ptr noundef %2, ptr noundef nonnull %18, ptr noundef nonnull @c_n1, ptr noundef nonnull @c_n1) #4
  store i32 %30, ptr %17, align 4, !tbaa !5
  %31 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__3, ptr noundef nonnull @.str.2, ptr noundef %0, ptr noundef %2, ptr noundef nonnull %18, ptr noundef nonnull %17, ptr noundef nonnull @c_n1) #4
  %32 = call i32 @ilaenv2stage_(ptr noundef nonnull @c__4, ptr noundef nonnull @.str.2, ptr noundef %0, ptr noundef %2, ptr noundef nonnull %18, ptr noundef nonnull %17, ptr noundef nonnull @c_n1) #4
  %33 = call i32 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.3) #4
  %.not = icmp eq i32 %33, 0
  br i1 %.not, label %.thread.sink.split, label %34

34:                                               ; preds = %27
  %.not96 = icmp eq i32 %21, 0
  br i1 %.not96, label %35, label %37

35:                                               ; preds = %34
  %36 = call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #4
  %.not97 = icmp eq i32 %36, 0
  br i1 %.not97, label %.thread.sink.split, label %37

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

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

43:                                               ; preds = %40
  %44 = load i32, ptr %9, align 4, !tbaa !5
  %45 = icmp sge i32 %44, %31
  %or.cond = select i1 %45, i1 true, i1 %28
  br i1 %or.cond, label %46, label %.thread.sink.split

46:                                               ; preds = %43
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = icmp sge i32 %47, %32
  %or.cond3 = select i1 %48, i1 true, i1 %28
  br i1 %or.cond3, label %49, label %.thread.sink.split

49:                                               ; preds = %46
  %.pr = load i32, ptr %12, align 4, !tbaa !5
  %50 = icmp eq i32 %.pr, 0
  br i1 %50, label %53, label %.thread

.thread.sink.split:                               ; preds = %46, %43, %40, %37, %35, %27
  %.sink = phi i32 [ -1, %27 ], [ -2, %35 ], [ -3, %37 ], [ -5, %40 ], [ -10, %43 ], [ -12, %46 ]
  store i32 %.sink, ptr %12, align 4, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %49
  %.ph103 = phi i32 [ %.pr, %49 ], [ %.sink, %.thread.sink.split ]
  %51 = sub nsw i32 0, %.ph103
  store i32 %51, ptr %14, align 4, !tbaa !5
  %52 = call i32 @xerbla_(ptr noundef nonnull @.str.2, ptr noundef nonnull %14, i32 noundef 13) #4
  br label %79

53:                                               ; preds = %49
  %54 = sitofp i32 %31 to float
  store float %54, ptr %8, align 4, !tbaa !9
  %55 = getelementptr inbounds i8, ptr %8, i64 4
  store float 0.000000e+00, ptr %55, align 4, !tbaa !12
  %56 = sitofp i32 %32 to float
  store float %56, ptr %10, align 4, !tbaa !9
  %57 = getelementptr inbounds i8, ptr %10, i64 4
  store float 0.000000e+00, ptr %57, align 4, !tbaa !12
  br i1 %28, label %79, label %58

58:                                               ; preds = %53
  %59 = icmp eq i32 %38, 0
  br i1 %59, label %60, label %61

60:                                               ; preds = %58
  store float 1.000000e+00, ptr %10, align 4, !tbaa !9
  br label %79

61:                                               ; preds = %58
  %62 = load i32, ptr %18, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %15, align 4, !tbaa !5
  %64 = mul nsw i32 %63, %38
  %65 = sub nsw i32 %47, %64
  store i32 %65, ptr %16, align 4, !tbaa !5
  %66 = sext i32 %64 to i64
  %67 = getelementptr %struct.complex, ptr %19, i64 %66
  %68 = getelementptr i8, ptr %67, i64 8
  call void @chetrd_he2hb_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %18, ptr noundef %3, ptr noundef nonnull %4, ptr noundef nonnull %10, ptr noundef nonnull %15, ptr noundef %7, ptr noundef %68, ptr noundef nonnull %16, ptr noundef nonnull %12) #4
  %69 = load i32, ptr %12, align 4, !tbaa !5
  %.not99 = icmp eq i32 %69, 0
  br i1 %.not99, label %73, label %70

70:                                               ; preds = %61
  %71 = sub nsw i32 0, %69
  store i32 %71, ptr %14, align 4, !tbaa !5
  %72 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %14, i32 noundef 12) #4
  br label %79

73:                                               ; preds = %61
  call void @chetrd_hb2st_(ptr noundef nonnull @.str.6, ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %18, ptr noundef nonnull %10, ptr noundef nonnull %15, ptr noundef %5, ptr noundef %6, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef %68, ptr noundef nonnull %16, ptr noundef nonnull %12) #4
  %74 = load i32, ptr %12, align 4, !tbaa !5
  %.not100 = icmp eq i32 %74, 0
  br i1 %.not100, label %78, label %75

75:                                               ; preds = %73
  %76 = sub nsw i32 0, %74
  store i32 %76, ptr %14, align 4, !tbaa !5
  %77 = call i32 @xerbla_(ptr noundef nonnull @.str.7, ptr noundef nonnull %14, i32 noundef 12) #4
  br label %79

78:                                               ; preds = %73
  store float %54, ptr %8, align 4, !tbaa !9
  store float 0.000000e+00, ptr %55, align 4, !tbaa !12
  store float %56, ptr %10, align 4, !tbaa !9
  store float 0.000000e+00, ptr %57, align 4, !tbaa !12
  br label %79

79:                                               ; preds = %53, %78, %75, %70, %60, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #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 @ilaenv2stage_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @xerbla_(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @chetrd_he2hb_(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 @chetrd_hb2st_(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

; 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, !11, i64 0}
!10 = !{!"", !11, i64 0, !11, i64 4}
!11 = !{!"float", !7, i64 0}
!12 = !{!10, !11, i64 4}


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