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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @sspev_(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) #0 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %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 i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca i64, align 8
  %26 = alloca float, align 4
  %27 = alloca i64, align 8
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca i64, align 8
  %37 = alloca i64, align 8
  %38 = alloca float, align 4
  %39 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #4
  %40 = load ptr, ptr %14, align 8, !tbaa !5
  %41 = getelementptr inbounds float, ptr %40, i32 -1
  store ptr %41, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %15, align 8, !tbaa !5
  %43 = getelementptr inbounds float, ptr %42, i32 -1
  store ptr %43, ptr %15, align 8, !tbaa !5
  %44 = load ptr, ptr %17, align 8, !tbaa !5
  %45 = load i64, ptr %44, align 8, !tbaa !9
  store i64 %45, ptr %20, align 8, !tbaa !9
  %46 = load i64, ptr %20, align 8, !tbaa !9
  %47 = add nsw i64 1, %46
  store i64 %47, ptr %21, align 8, !tbaa !9
  %48 = load i64, ptr %21, align 8, !tbaa !9
  %49 = load ptr, ptr %16, align 8, !tbaa !5
  %50 = sub i64 0, %48
  %51 = getelementptr inbounds float, ptr %49, i64 %50
  store ptr %51, ptr %16, align 8, !tbaa !5
  %52 = load ptr, ptr %18, align 8, !tbaa !5
  %53 = getelementptr inbounds float, ptr %52, i32 -1
  store ptr %53, ptr %18, align 8, !tbaa !5
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = call i64 @lsame_(ptr noundef %54, ptr noundef @.str)
  store i64 %55, ptr %32, align 8, !tbaa !9
  %56 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 0, ptr %56, align 8, !tbaa !9
  %57 = load i64, ptr %32, align 8, !tbaa !9
  %58 = icmp ne i64 %57, 0
  br i1 %58, label %65, label %59

59:                                               ; preds = %9
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = call i64 @lsame_(ptr noundef %60, ptr noundef @.str.1)
  %62 = icmp ne i64 %61, 0
  br i1 %62, label %65, label %63

63:                                               ; preds = %59
  %64 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %64, align 8, !tbaa !9
  br label %99

65:                                               ; preds = %59, %9
  %66 = load ptr, ptr %12, align 8, !tbaa !5
  %67 = call i64 @lsame_(ptr noundef %66, ptr noundef @.str.2)
  %68 = icmp ne i64 %67, 0
  br i1 %68, label %75, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr %12, align 8, !tbaa !5
  %71 = call i64 @lsame_(ptr noundef %70, ptr noundef @.str.3)
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %75, label %73

73:                                               ; preds = %69
  %74 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %74, align 8, !tbaa !9
  br label %98

75:                                               ; preds = %69, %65
  %76 = load ptr, ptr %13, align 8, !tbaa !5
  %77 = load i64, ptr %76, align 8, !tbaa !9
  %78 = icmp slt i64 %77, 0
  br i1 %78, label %79, label %81

79:                                               ; preds = %75
  %80 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -3, ptr %80, align 8, !tbaa !9
  br label %97

81:                                               ; preds = %75
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = load i64, ptr %82, align 8, !tbaa !9
  %84 = icmp slt i64 %83, 1
  br i1 %84, label %94, label %85

85:                                               ; preds = %81
  %86 = load i64, ptr %32, align 8, !tbaa !9
  %87 = icmp ne i64 %86, 0
  br i1 %87, label %88, label %96

88:                                               ; preds = %85
  %89 = load ptr, ptr %17, align 8, !tbaa !5
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = load i64, ptr %91, align 8, !tbaa !9
  %93 = icmp slt i64 %90, %92
  br i1 %93, label %94, label %96

94:                                               ; preds = %88, %81
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -7, ptr %95, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %94, %88, %85
  br label %97

97:                                               ; preds = %96, %79
  br label %98

98:                                               ; preds = %97, %73
  br label %99

99:                                               ; preds = %98, %63
  %100 = load ptr, ptr %19, align 8, !tbaa !5
  %101 = load i64, ptr %100, align 8, !tbaa !9
  %102 = icmp ne i64 %101, 0
  br i1 %102, label %103, label %108

103:                                              ; preds = %99
  %104 = load ptr, ptr %19, align 8, !tbaa !5
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = sub nsw i64 0, %105
  store i64 %106, ptr %22, align 8, !tbaa !9
  %107 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %22)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %39, align 4
  br label %276

108:                                              ; preds = %99
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = load i64, ptr %109, align 8, !tbaa !9
  %111 = icmp eq i64 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %108
  store i32 0, ptr %10, align 4
  store i32 1, ptr %39, align 4
  br label %276

113:                                              ; preds = %108
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = icmp eq i64 %115, 1
  br i1 %116, label %117, label %131

117:                                              ; preds = %113
  %118 = load ptr, ptr %14, align 8, !tbaa !5
  %119 = getelementptr inbounds float, ptr %118, i64 1
  %120 = load float, ptr %119, align 4, !tbaa !11
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = getelementptr inbounds float, ptr %121, i64 1
  store float %120, ptr %122, align 4, !tbaa !11
  %123 = load i64, ptr %32, align 8, !tbaa !9
  %124 = icmp ne i64 %123, 0
  br i1 %124, label %125, label %130

125:                                              ; preds = %117
  %126 = load ptr, ptr %16, align 8, !tbaa !5
  %127 = load i64, ptr %20, align 8, !tbaa !9
  %128 = add nsw i64 %127, 1
  %129 = getelementptr inbounds float, ptr %126, i64 %128
  store float 1.000000e+00, ptr %129, align 4, !tbaa !11
  br label %130

130:                                              ; preds = %125, %117
  store i32 0, ptr %10, align 4
  store i32 1, ptr %39, align 4
  br label %276

131:                                              ; preds = %113
  %132 = call double @slamch_(ptr noundef @.str.5)
  %133 = fptrunc double %132 to float
  store float %133, ptr %34, align 4, !tbaa !11
  %134 = call double @slamch_(ptr noundef @.str.6)
  %135 = fptrunc double %134 to float
  store float %135, ptr %24, align 4, !tbaa !11
  %136 = load float, ptr %34, align 4, !tbaa !11
  %137 = load float, ptr %24, align 4, !tbaa !11
  %138 = fdiv float %136, %137
  store float %138, ptr %38, align 4, !tbaa !11
  %139 = load float, ptr %38, align 4, !tbaa !11
  %140 = fdiv float 1.000000e+00, %139
  store float %140, ptr %35, align 4, !tbaa !11
  %141 = load float, ptr %38, align 4, !tbaa !11
  %142 = fpext float %141 to double
  %143 = call double @sqrt(double noundef %142) #4
  %144 = fptrunc double %143 to float
  store float %144, ptr %28, align 4, !tbaa !11
  %145 = load float, ptr %35, align 4, !tbaa !11
  %146 = fpext float %145 to double
  %147 = call double @sqrt(double noundef %146) #4
  %148 = fptrunc double %147 to float
  store float %148, ptr %29, align 4, !tbaa !11
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = getelementptr inbounds float, ptr %151, i64 1
  %153 = load ptr, ptr %18, align 8, !tbaa !5
  %154 = getelementptr inbounds float, ptr %153, i64 1
  %155 = call double @slansp_(ptr noundef @.str.7, ptr noundef %149, ptr noundef %150, ptr noundef %152, ptr noundef %154)
  %156 = fptrunc double %155 to float
  store float %156, ptr %26, align 4, !tbaa !11
  store i64 0, ptr %33, align 8, !tbaa !9
  %157 = load float, ptr %26, align 4, !tbaa !11
  %158 = fcmp ogt float %157, 0.000000e+00
  br i1 %158, label %159, label %167

159:                                              ; preds = %131
  %160 = load float, ptr %26, align 4, !tbaa !11
  %161 = load float, ptr %28, align 4, !tbaa !11
  %162 = fcmp olt float %160, %161
  br i1 %162, label %163, label %167

163:                                              ; preds = %159
  store i64 1, ptr %33, align 8, !tbaa !9
  %164 = load float, ptr %28, align 4, !tbaa !11
  %165 = load float, ptr %26, align 4, !tbaa !11
  %166 = fdiv float %164, %165
  store float %166, ptr %30, align 4, !tbaa !11
  br label %176

167:                                              ; preds = %159, %131
  %168 = load float, ptr %26, align 4, !tbaa !11
  %169 = load float, ptr %29, align 4, !tbaa !11
  %170 = fcmp ogt float %168, %169
  br i1 %170, label %171, label %175

171:                                              ; preds = %167
  store i64 1, ptr %33, align 8, !tbaa !9
  %172 = load float, ptr %29, align 4, !tbaa !11
  %173 = load float, ptr %26, align 4, !tbaa !11
  %174 = fdiv float %172, %173
  store float %174, ptr %30, align 4, !tbaa !11
  br label %175

175:                                              ; preds = %171, %167
  br label %176

176:                                              ; preds = %175, %163
  %177 = load i64, ptr %33, align 8, !tbaa !9
  %178 = icmp eq i64 %177, 1
  br i1 %178, label %179, label %190

179:                                              ; preds = %176
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = load i64, ptr %180, align 8, !tbaa !9
  %182 = load ptr, ptr %13, align 8, !tbaa !5
  %183 = load i64, ptr %182, align 8, !tbaa !9
  %184 = add nsw i64 %183, 1
  %185 = mul nsw i64 %181, %184
  %186 = sdiv i64 %185, 2
  store i64 %186, ptr %22, align 8, !tbaa !9
  %187 = load ptr, ptr %14, align 8, !tbaa !5
  %188 = getelementptr inbounds float, ptr %187, i64 1
  %189 = call i32 @f2c_sscal(ptr noundef %22, ptr noundef %30, ptr noundef %188, ptr noundef @c__1)
  br label %190

190:                                              ; preds = %179, %176
  store i64 1, ptr %25, align 8, !tbaa !9
  %191 = load i64, ptr %25, align 8, !tbaa !9
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = load i64, ptr %192, align 8, !tbaa !9
  %194 = add nsw i64 %191, %193
  store i64 %194, ptr %36, align 8, !tbaa !9
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = load ptr, ptr %13, align 8, !tbaa !5
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = getelementptr inbounds float, ptr %197, i64 1
  %199 = load ptr, ptr %15, align 8, !tbaa !5
  %200 = getelementptr inbounds float, ptr %199, i64 1
  %201 = load ptr, ptr %18, align 8, !tbaa !5
  %202 = load i64, ptr %25, align 8, !tbaa !9
  %203 = getelementptr inbounds float, ptr %201, i64 %202
  %204 = load ptr, ptr %18, align 8, !tbaa !5
  %205 = load i64, ptr %36, align 8, !tbaa !9
  %206 = getelementptr inbounds float, ptr %204, i64 %205
  %207 = call i32 @ssptrd_(ptr noundef %195, ptr noundef %196, ptr noundef %198, ptr noundef %200, ptr noundef %203, ptr noundef %206, ptr noundef %31)
  %208 = load i64, ptr %32, align 8, !tbaa !9
  %209 = icmp ne i64 %208, 0
  br i1 %209, label %219, label %210

210:                                              ; preds = %190
  %211 = load ptr, ptr %13, align 8, !tbaa !5
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = getelementptr inbounds float, ptr %212, i64 1
  %214 = load ptr, ptr %18, align 8, !tbaa !5
  %215 = load i64, ptr %25, align 8, !tbaa !9
  %216 = getelementptr inbounds float, ptr %214, i64 %215
  %217 = load ptr, ptr %19, align 8, !tbaa !5
  %218 = call i32 @ssterf_(ptr noundef %211, ptr noundef %213, ptr noundef %216, ptr noundef %217)
  br label %255

219:                                              ; preds = %190
  %220 = load i64, ptr %36, align 8, !tbaa !9
  %221 = load ptr, ptr %13, align 8, !tbaa !5
  %222 = load i64, ptr %221, align 8, !tbaa !9
  %223 = add nsw i64 %220, %222
  store i64 %223, ptr %37, align 8, !tbaa !9
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = load ptr, ptr %14, align 8, !tbaa !5
  %227 = getelementptr inbounds float, ptr %226, i64 1
  %228 = load ptr, ptr %18, align 8, !tbaa !5
  %229 = load i64, ptr %36, align 8, !tbaa !9
  %230 = getelementptr inbounds float, ptr %228, i64 %229
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  %232 = load i64, ptr %21, align 8, !tbaa !9
  %233 = getelementptr inbounds float, ptr %231, i64 %232
  %234 = load ptr, ptr %17, align 8, !tbaa !5
  %235 = load ptr, ptr %18, align 8, !tbaa !5
  %236 = load i64, ptr %37, align 8, !tbaa !9
  %237 = getelementptr inbounds float, ptr %235, i64 %236
  %238 = call i32 @sopgtr_(ptr noundef %224, ptr noundef %225, ptr noundef %227, ptr noundef %230, ptr noundef %233, ptr noundef %234, ptr noundef %237, ptr noundef %31)
  %239 = load ptr, ptr %11, align 8, !tbaa !5
  %240 = load ptr, ptr %13, align 8, !tbaa !5
  %241 = load ptr, ptr %15, align 8, !tbaa !5
  %242 = getelementptr inbounds float, ptr %241, i64 1
  %243 = load ptr, ptr %18, align 8, !tbaa !5
  %244 = load i64, ptr %25, align 8, !tbaa !9
  %245 = getelementptr inbounds float, ptr %243, i64 %244
  %246 = load ptr, ptr %16, align 8, !tbaa !5
  %247 = load i64, ptr %21, align 8, !tbaa !9
  %248 = getelementptr inbounds float, ptr %246, i64 %247
  %249 = load ptr, ptr %17, align 8, !tbaa !5
  %250 = load ptr, ptr %18, align 8, !tbaa !5
  %251 = load i64, ptr %36, align 8, !tbaa !9
  %252 = getelementptr inbounds float, ptr %250, i64 %251
  %253 = load ptr, ptr %19, align 8, !tbaa !5
  %254 = call i32 @ssteqr_(ptr noundef %239, ptr noundef %240, ptr noundef %242, ptr noundef %245, ptr noundef %248, ptr noundef %249, ptr noundef %252, ptr noundef %253)
  br label %255

255:                                              ; preds = %219, %210
  %256 = load i64, ptr %33, align 8, !tbaa !9
  %257 = icmp eq i64 %256, 1
  br i1 %257, label %258, label %275

258:                                              ; preds = %255
  %259 = load ptr, ptr %19, align 8, !tbaa !5
  %260 = load i64, ptr %259, align 8, !tbaa !9
  %261 = icmp eq i64 %260, 0
  br i1 %261, label %262, label %265

262:                                              ; preds = %258
  %263 = load ptr, ptr %13, align 8, !tbaa !5
  %264 = load i64, ptr %263, align 8, !tbaa !9
  store i64 %264, ptr %27, align 8, !tbaa !9
  br label %269

265:                                              ; preds = %258
  %266 = load ptr, ptr %19, align 8, !tbaa !5
  %267 = load i64, ptr %266, align 8, !tbaa !9
  %268 = sub nsw i64 %267, 1
  store i64 %268, ptr %27, align 8, !tbaa !9
  br label %269

269:                                              ; preds = %265, %262
  %270 = load float, ptr %30, align 4, !tbaa !11
  %271 = fdiv float 1.000000e+00, %270
  store float %271, ptr %23, align 4, !tbaa !11
  %272 = load ptr, ptr %15, align 8, !tbaa !5
  %273 = getelementptr inbounds float, ptr %272, i64 1
  %274 = call i32 @f2c_sscal(ptr noundef %27, ptr noundef %23, ptr noundef %273, ptr noundef @c__1)
  br label %275

275:                                              ; preds = %269, %255
  store i32 0, ptr %10, align 4
  store i32 1, ptr %39, align 4
  br label %276

276:                                              ; preds = %275, %130, %112, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  %277 = load i32, ptr %10, align 4
  ret i32 %277
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare i64 @lsame_(ptr noundef, ptr noundef) #2

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

declare double @slamch_(ptr noundef) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

declare double @slansp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

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

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

declare i32 @ssteqr_(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 "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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !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
@.str.5 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [2 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @sspev_(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) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  %11 = alloca float, align 4
  %12 = alloca i64, align 8
  %13 = alloca float, align 4
  %14 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  %15 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #3
  store i64 0, ptr %8, align 8, !tbaa !5
  %.not = icmp ne i64 %15, 0
  br i1 %.not, label %18, label %16

16:                                               ; preds = %9
  %17 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str.1) #3
  %.not105 = icmp eq i64 %17, 0
  br i1 %.not105, label %.thread.sink.split, label %18

18:                                               ; preds = %16, %9
  %19 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.2) #3
  %.not106 = icmp eq i64 %19, 0
  br i1 %.not106, label %20, label %22

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

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

25:                                               ; preds = %22
  %26 = load i64, ptr %6, align 8, !tbaa !5
  %27 = icmp slt i64 %26, 1
  %28 = icmp ult i64 %26, %23
  %or.cond = and i1 %.not, %28
  %or.cond115 = or i1 %27, %or.cond
  br i1 %or.cond115, label %.thread.sink.split, label %29

29:                                               ; preds = %25
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not108 = icmp eq i64 %.pr, 0
  br i1 %.not108, label %33, label %.thread

.thread.sink.split:                               ; preds = %25, %22, %20, %16
  %.sink = phi i64 [ -1, %16 ], [ -2, %20 ], [ -3, %22 ], [ -7, %25 ]
  store i64 %.sink, ptr %8, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %.thread.sink.split, %29
  %30 = phi i64 [ %.pr, %29 ], [ %.sink, %.thread.sink.split ]
  %31 = sub nsw i64 0, %30
  store i64 %31, ptr %10, align 8, !tbaa !5
  %32 = call i32 @xerbla_(ptr noundef nonnull @.str.4, ptr noundef nonnull %10) #3
  br label %80

33:                                               ; preds = %29
  switch i64 %23, label %37 [
    i64 0, label %80
    i64 1, label %34
  ]

34:                                               ; preds = %33
  %35 = load float, ptr %3, align 4, !tbaa !9
  store float %35, ptr %4, align 4, !tbaa !9
  br i1 %.not, label %36, label %80

36:                                               ; preds = %34
  store float 1.000000e+00, ptr %5, align 4, !tbaa !9
  br label %80

37:                                               ; preds = %33
  %38 = tail call double @slamch_(ptr noundef nonnull @.str.5) #3
  %39 = fptrunc double %38 to float
  %40 = tail call double @slamch_(ptr noundef nonnull @.str.6) #3
  %41 = fptrunc double %40 to float
  %42 = fdiv float %39, %41
  %43 = fdiv float 1.000000e+00, %42
  %sqrtf = tail call float @sqrtf(float noundef %42) #4
  %sqrtf109 = tail call float @sqrtf(float noundef %43) #4
  %44 = tail call double @slansp_(ptr noundef nonnull @.str.7, ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %7) #3
  %45 = fptrunc double %44 to float
  %46 = fcmp ogt float %45, 0.000000e+00
  %47 = fcmp ogt float %sqrtf, %45
  %or.cond110 = select i1 %46, i1 %47, i1 false
  br i1 %or.cond110, label %50, label %48

48:                                               ; preds = %37
  %49 = fcmp olt float %sqrtf109, %45
  br i1 %49, label %50, label %56

50:                                               ; preds = %48, %37
  %sqrtf109.pn = phi float [ %sqrtf, %37 ], [ %sqrtf109, %48 ]
  %storemerge114 = fdiv float %sqrtf109.pn, %45
  store float %storemerge114, ptr %13, align 4, !tbaa !9
  %51 = load i64, ptr %2, align 8, !tbaa !5
  %52 = add nsw i64 %51, 1
  %53 = mul nsw i64 %52, %51
  %54 = sdiv i64 %53, 2
  store i64 %54, ptr %10, align 8, !tbaa !5
  %55 = call i32 @f2c_sscal(ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef %3, ptr noundef nonnull @c__1) #3
  br label %56

56:                                               ; preds = %48, %50
  %57 = phi i1 [ true, %50 ], [ false, %48 ]
  %58 = load i64, ptr %2, align 8, !tbaa !5
  %59 = getelementptr float, ptr %7, i64 %58
  %60 = call i32 @ssptrd_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4, ptr noundef %7, ptr noundef %59, ptr noundef nonnull %14) #3
  br i1 %.not, label %63, label %61

61:                                               ; preds = %56
  %62 = call i32 @ssterf_(ptr noundef nonnull %2, ptr noundef %4, ptr noundef %7, ptr noundef nonnull %8) #3
  br label %68

63:                                               ; preds = %56
  %64 = load i64, ptr %2, align 8, !tbaa !5
  %65 = getelementptr float, ptr %59, i64 %64
  %66 = call i32 @sopgtr_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %59, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %65, ptr noundef nonnull %14) #3
  %67 = call i32 @ssteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %7, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %59, ptr noundef nonnull %8) #3
  br label %68

68:                                               ; preds = %63, %61
  br i1 %57, label %69, label %80

69:                                               ; preds = %68
  %70 = load i64, ptr %8, align 8, !tbaa !5
  %71 = icmp eq i64 %70, 0
  br i1 %71, label %72, label %74

72:                                               ; preds = %69
  %73 = load i64, ptr %2, align 8, !tbaa !5
  br label %76

74:                                               ; preds = %69
  %75 = add nsw i64 %70, -1
  br label %76

76:                                               ; preds = %74, %72
  %storemerge = phi i64 [ %75, %74 ], [ %73, %72 ]
  store i64 %storemerge, ptr %12, align 8, !tbaa !5
  %77 = load float, ptr %13, align 4, !tbaa !9
  %78 = fdiv float 1.000000e+00, %77
  store float %78, ptr %11, align 4, !tbaa !9
  %79 = call i32 @f2c_sscal(ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef %4, ptr noundef nonnull @c__1) #3
  br label %80

80:                                               ; preds = %68, %76, %34, %36, %33, %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

declare i64 @lsame_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare double @slamch_(ptr noundef) local_unnamed_addr #2

declare double @slansp_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

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

declare float @sqrtf(float) local_unnamed_addr

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "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" }

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

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


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