; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (dsytrd_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"

@.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 @dsytrd_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 double, 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 double, 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 double, 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 double, 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 double, 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 double, 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 %162

153:                                              ; preds = %149
  %154 = load i32, ptr %34, align 4, !tbaa !9
  %155 = sitofp i32 %154 to double
  %156 = load ptr, ptr %22, align 8, !tbaa !5
  %157 = getelementptr inbounds double, ptr %156, i64 1
  store double %155, ptr %157, align 8, !tbaa !11
  %158 = load i32, ptr %35, align 4, !tbaa !9
  %159 = sitofp i32 %158 to double
  %160 = load ptr, ptr %24, align 8, !tbaa !5
  %161 = getelementptr inbounds double, ptr %160, i64 1
  store double %159, ptr %161, align 8, !tbaa !11
  br label %162

162:                                              ; preds = %153, %149
  %163 = load ptr, ptr %26, align 8, !tbaa !5
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %171

166:                                              ; preds = %162
  %167 = load ptr, ptr %26, align 8, !tbaa !5
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = sub nsw i32 0, %168
  store i32 %169, ptr %29, align 4, !tbaa !9
  %170 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %29, i32 noundef 13)
  store i32 1, ptr %41, align 4
  br label %262

171:                                              ; preds = %162
  %172 = load i32, ptr %40, align 4, !tbaa !9
  %173 = icmp ne i32 %172, 0
  br i1 %173, label %174, label %175

174:                                              ; preds = %171
  store i32 1, ptr %41, align 4
  br label %262

175:                                              ; preds = %171
  br label %176

176:                                              ; preds = %175
  %177 = load ptr, ptr %16, align 8, !tbaa !5
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = icmp eq i32 %178, 0
  br i1 %179, label %180, label %183

180:                                              ; preds = %176
  %181 = load ptr, ptr %24, align 8, !tbaa !5
  %182 = getelementptr inbounds double, ptr %181, i64 1
  store double 1.000000e+00, ptr %182, align 8, !tbaa !11
  store i32 1, ptr %41, align 4
  br label %262

183:                                              ; preds = %176
  %184 = load i32, ptr %39, align 4, !tbaa !9
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %30, align 4, !tbaa !9
  %186 = load ptr, ptr %25, align 8, !tbaa !5
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = load i32, ptr %30, align 4, !tbaa !9
  %189 = load ptr, ptr %16, align 8, !tbaa !5
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = mul nsw i32 %188, %190
  %192 = sub nsw i32 %187, %191
  store i32 %192, ptr %31, align 4, !tbaa !9
  store i32 1, ptr %33, align 4, !tbaa !9
  %193 = load i32, ptr %33, align 4, !tbaa !9
  %194 = load i32, ptr %30, align 4, !tbaa !9
  %195 = load ptr, ptr %16, align 8, !tbaa !5
  %196 = load i32, ptr %195, align 4, !tbaa !9
  %197 = mul nsw i32 %194, %196
  %198 = add nsw i32 %193, %197
  store i32 %198, ptr %32, align 4, !tbaa !9
  %199 = load ptr, ptr %15, align 8, !tbaa !5
  %200 = load ptr, ptr %16, align 8, !tbaa !5
  %201 = load ptr, ptr %17, align 8, !tbaa !5
  %202 = load i32, ptr %28, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds double, ptr %201, i64 %203
  %205 = load ptr, ptr %18, align 8, !tbaa !5
  %206 = load ptr, ptr %24, align 8, !tbaa !5
  %207 = load i32, ptr %33, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds double, ptr %206, i64 %208
  %210 = load ptr, ptr %21, align 8, !tbaa !5
  %211 = getelementptr inbounds double, ptr %210, i64 1
  %212 = load ptr, ptr %24, 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 %26, align 8, !tbaa !5
  call void @dsytrd_sy2sb_(ptr noundef %199, ptr noundef %200, ptr noundef %39, ptr noundef %204, ptr noundef %205, ptr noundef %209, ptr noundef %30, ptr noundef %211, ptr noundef %215, ptr noundef %31, ptr noundef %216)
  %217 = load ptr, ptr %26, align 8, !tbaa !5
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %225

220:                                              ; preds = %183
  %221 = load ptr, ptr %26, align 8, !tbaa !5
  %222 = load i32, ptr %221, align 4, !tbaa !9
  %223 = sub nsw i32 0, %222
  store i32 %223, ptr %29, align 4, !tbaa !9
  %224 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %29, i32 noundef 12)
  store i32 1, ptr %41, align 4
  br label %262

225:                                              ; preds = %183
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = load ptr, ptr %15, align 8, !tbaa !5
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = load ptr, ptr %24, align 8, !tbaa !5
  %230 = load i32, ptr %33, align 4, !tbaa !9
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds double, ptr %229, i64 %231
  %233 = load ptr, ptr %19, align 8, !tbaa !5
  %234 = getelementptr inbounds double, ptr %233, i64 1
  %235 = load ptr, ptr %20, align 8, !tbaa !5
  %236 = getelementptr inbounds double, ptr %235, i64 1
  %237 = load ptr, ptr %22, align 8, !tbaa !5
  %238 = getelementptr inbounds double, ptr %237, i64 1
  %239 = load ptr, ptr %23, align 8, !tbaa !5
  %240 = load ptr, ptr %24, align 8, !tbaa !5
  %241 = load i32, ptr %32, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds double, ptr %240, i64 %242
  %244 = load ptr, ptr %26, align 8, !tbaa !5
  call void @dsytrd_sb2st_(ptr noundef @.str.6, ptr noundef %226, ptr noundef %227, ptr noundef %228, ptr noundef %39, ptr noundef %232, ptr noundef %30, ptr noundef %234, ptr noundef %236, ptr noundef %238, ptr noundef %239, ptr noundef %243, ptr noundef %31, ptr noundef %244)
  %245 = load ptr, ptr %26, align 8, !tbaa !5
  %246 = load i32, ptr %245, align 4, !tbaa !9
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %248, label %253

248:                                              ; preds = %225
  %249 = load ptr, ptr %26, align 8, !tbaa !5
  %250 = load i32, ptr %249, align 4, !tbaa !9
  %251 = sub nsw i32 0, %250
  store i32 %251, ptr %29, align 4, !tbaa !9
  %252 = call i32 @xerbla_(ptr noundef @.str.7, ptr noundef %29, i32 noundef 12)
  store i32 1, ptr %41, align 4
  br label %262

253:                                              ; preds = %225
  %254 = load i32, ptr %34, align 4, !tbaa !9
  %255 = sitofp i32 %254 to double
  %256 = load ptr, ptr %22, align 8, !tbaa !5
  %257 = getelementptr inbounds double, ptr %256, i64 1
  store double %255, ptr %257, align 8, !tbaa !11
  %258 = load i32, ptr %35, align 4, !tbaa !9
  %259 = sitofp i32 %258 to double
  %260 = load ptr, ptr %24, align 8, !tbaa !5
  %261 = getelementptr inbounds double, ptr %260, i64 1
  store double %259, ptr %261, align 8, !tbaa !11
  store i32 1, ptr %41, align 4
  br label %262

262:                                              ; preds = %253, %248, %220, %180, %174, %166
  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 @dsytrd_sy2sb_(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 @dsytrd_sb2st_(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, !12, i64 0}
!12 = !{!"double", !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
@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 @dsytrd_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
  %.not91 = icmp eq i32 %21, 0
  br i1 %.not91, label %35, label %37

35:                                               ; preds = %34
  %36 = call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #4
  %.not92 = icmp eq i32 %36, 0
  br i1 %.not92, 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
  %.ph98 = phi i32 [ %.pr, %49 ], [ %.sink, %.thread.sink.split ]
  %51 = sub nsw i32 0, %.ph98
  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 %77

53:                                               ; preds = %49
  %54 = sitofp i32 %31 to double
  store double %54, ptr %8, align 8, !tbaa !9
  %55 = sitofp i32 %32 to double
  store double %55, ptr %10, align 8, !tbaa !9
  br i1 %28, label %77, label %56

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

58:                                               ; preds = %56
  store double 1.000000e+00, ptr %10, align 8, !tbaa !9
  br label %77

59:                                               ; preds = %56
  %60 = load i32, ptr %18, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %15, align 4, !tbaa !5
  %62 = mul nsw i32 %61, %38
  %63 = sub nsw i32 %47, %62
  store i32 %63, ptr %16, align 4, !tbaa !5
  %64 = sext i32 %62 to i64
  %65 = getelementptr double, ptr %19, i64 %64
  %66 = getelementptr i8, ptr %65, i64 8
  call void @dsytrd_sy2sb_(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 %66, ptr noundef nonnull %16, ptr noundef nonnull %12) #4
  %67 = load i32, ptr %12, align 4, !tbaa !5
  %.not94 = icmp eq i32 %67, 0
  br i1 %.not94, label %71, label %68

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

71:                                               ; preds = %59
  call void @dsytrd_sb2st_(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 %66, ptr noundef nonnull %16, ptr noundef nonnull %12) #4
  %72 = load i32, ptr %12, align 4, !tbaa !5
  %.not95 = icmp eq i32 %72, 0
  br i1 %.not95, label %76, label %73

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

76:                                               ; preds = %71
  store double %54, ptr %8, align 8, !tbaa !9
  store double %55, ptr %10, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %53, %76, %73, %68, %58, %.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 @dsytrd_sy2sb_(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 @dsytrd_sb2st_(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, !10, i64 0}
!10 = !{!"double", !7, i64 0}


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