; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/SRC (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 i32, align 4

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

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

64:                                               ; preds = %60
  %65 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -1, ptr %65, align 4, !tbaa !9
  br label %100

66:                                               ; preds = %60, %9
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = call i32 @lsame_(ptr noundef %67, ptr noundef @.str.2)
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %76, label %70

70:                                               ; preds = %66
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = call i32 @lsame_(ptr noundef %71, ptr noundef @.str.3)
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %76, label %74

74:                                               ; preds = %70
  %75 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -2, ptr %75, align 4, !tbaa !9
  br label %99

76:                                               ; preds = %70, %66
  %77 = load ptr, ptr %12, align 8, !tbaa !5
  %78 = load i32, ptr %77, align 4, !tbaa !9
  %79 = icmp slt i32 %78, 0
  br i1 %79, label %80, label %82

80:                                               ; preds = %76
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -3, ptr %81, align 4, !tbaa !9
  br label %98

82:                                               ; preds = %76
  %83 = load ptr, ptr %16, align 8, !tbaa !5
  %84 = load i32, ptr %83, align 4, !tbaa !9
  %85 = icmp slt i32 %84, 1
  br i1 %85, label %95, label %86

86:                                               ; preds = %82
  %87 = load i32, ptr %30, align 4, !tbaa !9
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %97

89:                                               ; preds = %86
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = load i32, ptr %92, align 4, !tbaa !9
  %94 = icmp slt i32 %91, %93
  br i1 %94, label %95, label %97

95:                                               ; preds = %89, %82
  %96 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 -7, ptr %96, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %95, %89, %86
  br label %98

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

99:                                               ; preds = %98, %74
  br label %100

100:                                              ; preds = %99, %64
  %101 = load ptr, ptr %18, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %104, label %109

104:                                              ; preds = %100
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = sub nsw i32 0, %106
  store i32 %107, ptr %21, align 4, !tbaa !9
  %108 = call i32 @xerbla_(ptr noundef @.str.4, ptr noundef %21, i32 noundef 6)
  store i32 1, ptr %38, align 4
  br label %278

109:                                              ; preds = %100
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = load i32, ptr %110, align 4, !tbaa !9
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %114

113:                                              ; preds = %109
  store i32 1, ptr %38, align 4
  br label %278

114:                                              ; preds = %109
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = icmp eq i32 %116, 1
  br i1 %117, label %118, label %133

118:                                              ; preds = %114
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = getelementptr inbounds float, ptr %119, i64 1
  %121 = load float, ptr %120, align 4, !tbaa !11
  %122 = load ptr, ptr %14, align 8, !tbaa !5
  %123 = getelementptr inbounds float, ptr %122, i64 1
  store float %121, ptr %123, align 4, !tbaa !11
  %124 = load i32, ptr %30, align 4, !tbaa !9
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %132

126:                                              ; preds = %118
  %127 = load ptr, ptr %15, align 8, !tbaa !5
  %128 = load i32, ptr %19, align 4, !tbaa !9
  %129 = add nsw i32 %128, 1
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds float, ptr %127, i64 %130
  store float 1.000000e+00, ptr %131, align 4, !tbaa !11
  br label %132

132:                                              ; preds = %126, %118
  store i32 1, ptr %38, align 4
  br label %278

133:                                              ; preds = %114
  %134 = call float @slamch_(ptr noundef @.str.5)
  store float %134, ptr %32, align 4, !tbaa !11
  %135 = call float @slamch_(ptr noundef @.str.6)
  store float %135, ptr %37, align 4, !tbaa !11
  %136 = load float, ptr %32, align 4, !tbaa !11
  %137 = load float, ptr %37, align 4, !tbaa !11
  %138 = fdiv float %136, %137
  store float %138, ptr %36, align 4, !tbaa !11
  %139 = load float, ptr %36, align 4, !tbaa !11
  %140 = fdiv float 1.000000e+00, %139
  store float %140, ptr %33, align 4, !tbaa !11
  %141 = load float, ptr %36, 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 %26, align 4, !tbaa !11
  %145 = load float, ptr %33, 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 %27, align 4, !tbaa !11
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = load ptr, ptr %12, align 8, !tbaa !5
  %151 = load ptr, ptr %13, align 8, !tbaa !5
  %152 = getelementptr inbounds float, ptr %151, i64 1
  %153 = load ptr, ptr %17, align 8, !tbaa !5
  %154 = getelementptr inbounds float, ptr %153, i64 1
  %155 = call float @slansp_(ptr noundef @.str.7, ptr noundef %149, ptr noundef %150, ptr noundef %152, ptr noundef %154)
  store float %155, ptr %24, align 4, !tbaa !11
  store i32 0, ptr %31, align 4, !tbaa !9
  %156 = load float, ptr %24, align 4, !tbaa !11
  %157 = fcmp ogt float %156, 0.000000e+00
  br i1 %157, label %158, label %166

158:                                              ; preds = %133
  %159 = load float, ptr %24, align 4, !tbaa !11
  %160 = load float, ptr %26, align 4, !tbaa !11
  %161 = fcmp olt float %159, %160
  br i1 %161, label %162, label %166

162:                                              ; preds = %158
  store i32 1, ptr %31, align 4, !tbaa !9
  %163 = load float, ptr %26, align 4, !tbaa !11
  %164 = load float, ptr %24, align 4, !tbaa !11
  %165 = fdiv float %163, %164
  store float %165, ptr %28, align 4, !tbaa !11
  br label %175

166:                                              ; preds = %158, %133
  %167 = load float, ptr %24, align 4, !tbaa !11
  %168 = load float, ptr %27, align 4, !tbaa !11
  %169 = fcmp ogt float %167, %168
  br i1 %169, label %170, label %174

170:                                              ; preds = %166
  store i32 1, ptr %31, align 4, !tbaa !9
  %171 = load float, ptr %27, align 4, !tbaa !11
  %172 = load float, ptr %24, align 4, !tbaa !11
  %173 = fdiv float %171, %172
  store float %173, ptr %28, align 4, !tbaa !11
  br label %174

174:                                              ; preds = %170, %166
  br label %175

175:                                              ; preds = %174, %162
  %176 = load i32, ptr %31, align 4, !tbaa !9
  %177 = icmp eq i32 %176, 1
  br i1 %177, label %178, label %188

178:                                              ; preds = %175
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = load ptr, ptr %12, align 8, !tbaa !5
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = add nsw i32 %182, 1
  %184 = mul nsw i32 %180, %183
  %185 = sdiv i32 %184, 2
  store i32 %185, ptr %21, align 4, !tbaa !9
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = getelementptr inbounds float, ptr %186, i64 1
  call void @sscal_(ptr noundef %21, ptr noundef %28, ptr noundef %187, ptr noundef @c__1)
  br label %188

188:                                              ; preds = %178, %175
  store i32 1, ptr %23, align 4, !tbaa !9
  %189 = load i32, ptr %23, align 4, !tbaa !9
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = add nsw i32 %189, %191
  store i32 %192, ptr %34, align 4, !tbaa !9
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  %194 = load ptr, ptr %12, align 8, !tbaa !5
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = getelementptr inbounds float, ptr %195, i64 1
  %197 = load ptr, ptr %14, align 8, !tbaa !5
  %198 = getelementptr inbounds float, ptr %197, i64 1
  %199 = load ptr, ptr %17, align 8, !tbaa !5
  %200 = load i32, ptr %23, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds float, ptr %199, i64 %201
  %203 = load ptr, ptr %17, align 8, !tbaa !5
  %204 = load i32, ptr %34, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds float, ptr %203, i64 %205
  call void @ssptrd_(ptr noundef %193, ptr noundef %194, ptr noundef %196, ptr noundef %198, ptr noundef %202, ptr noundef %206, ptr noundef %29)
  %207 = load i32, ptr %30, align 4, !tbaa !9
  %208 = icmp ne i32 %207, 0
  br i1 %208, label %218, label %209

209:                                              ; preds = %188
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = load ptr, ptr %14, align 8, !tbaa !5
  %212 = getelementptr inbounds float, ptr %211, i64 1
  %213 = load ptr, ptr %17, align 8, !tbaa !5
  %214 = load i32, ptr %23, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = getelementptr inbounds float, ptr %213, i64 %215
  %217 = load ptr, ptr %18, align 8, !tbaa !5
  call void @ssterf_(ptr noundef %210, ptr noundef %212, ptr noundef %216, ptr noundef %217)
  br label %258

218:                                              ; preds = %188
  %219 = load i32, ptr %34, align 4, !tbaa !9
  %220 = load ptr, ptr %12, align 8, !tbaa !5
  %221 = load i32, ptr %220, align 4, !tbaa !9
  %222 = add nsw i32 %219, %221
  store i32 %222, ptr %35, align 4, !tbaa !9
  %223 = load ptr, ptr %11, align 8, !tbaa !5
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = getelementptr inbounds float, ptr %225, i64 1
  %227 = load ptr, ptr %17, align 8, !tbaa !5
  %228 = load i32, ptr %34, align 4, !tbaa !9
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds float, ptr %227, i64 %229
  %231 = load ptr, ptr %15, align 8, !tbaa !5
  %232 = load i32, ptr %20, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds float, ptr %231, i64 %233
  %235 = load ptr, ptr %16, align 8, !tbaa !5
  %236 = load ptr, ptr %17, align 8, !tbaa !5
  %237 = load i32, ptr %35, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds float, ptr %236, i64 %238
  call void @sopgtr_(ptr noundef %223, ptr noundef %224, ptr noundef %226, ptr noundef %230, ptr noundef %234, ptr noundef %235, ptr noundef %239, ptr noundef %29)
  %240 = load ptr, ptr %10, align 8, !tbaa !5
  %241 = load ptr, ptr %12, align 8, !tbaa !5
  %242 = load ptr, ptr %14, align 8, !tbaa !5
  %243 = getelementptr inbounds float, ptr %242, i64 1
  %244 = load ptr, ptr %17, align 8, !tbaa !5
  %245 = load i32, ptr %23, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds float, ptr %244, i64 %246
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = load i32, ptr %20, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds float, ptr %248, i64 %250
  %252 = load ptr, ptr %16, align 8, !tbaa !5
  %253 = load ptr, ptr %17, align 8, !tbaa !5
  %254 = load i32, ptr %34, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds float, ptr %253, i64 %255
  %257 = load ptr, ptr %18, align 8, !tbaa !5
  call void @ssteqr_(ptr noundef %240, ptr noundef %241, ptr noundef %243, ptr noundef %247, ptr noundef %251, ptr noundef %252, ptr noundef %256, ptr noundef %257)
  br label %258

258:                                              ; preds = %218, %209
  %259 = load i32, ptr %31, align 4, !tbaa !9
  %260 = icmp eq i32 %259, 1
  br i1 %260, label %261, label %277

261:                                              ; preds = %258
  %262 = load ptr, ptr %18, align 8, !tbaa !5
  %263 = load i32, ptr %262, align 4, !tbaa !9
  %264 = icmp eq i32 %263, 0
  br i1 %264, label %265, label %268

265:                                              ; preds = %261
  %266 = load ptr, ptr %12, align 8, !tbaa !5
  %267 = load i32, ptr %266, align 4, !tbaa !9
  store i32 %267, ptr %25, align 4, !tbaa !9
  br label %272

268:                                              ; preds = %261
  %269 = load ptr, ptr %18, align 8, !tbaa !5
  %270 = load i32, ptr %269, align 4, !tbaa !9
  %271 = sub nsw i32 %270, 1
  store i32 %271, ptr %25, align 4, !tbaa !9
  br label %272

272:                                              ; preds = %268, %265
  %273 = load float, ptr %28, align 4, !tbaa !11
  %274 = fdiv float 1.000000e+00, %273
  store float %274, ptr %22, align 4, !tbaa !11
  %275 = load ptr, ptr %14, align 8, !tbaa !5
  %276 = getelementptr inbounds float, ptr %275, i64 1
  call void @sscal_(ptr noundef %25, ptr noundef %22, ptr noundef %276, ptr noundef @c__1)
  br label %277

277:                                              ; preds = %272, %258
  store i32 1, ptr %38, align 4
  br label %278

278:                                              ; preds = %277, %132, %113, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  ret void
}

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

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

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

declare float @slamch_(ptr noundef) #2

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

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

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

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

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

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

declare void @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 = !{!"int", !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 i32, align 4

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

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

19:                                               ; preds = %17, %9
  %20 = tail call i32 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.2) #3
  %.not105 = icmp eq i32 %20, 0
  br i1 %.not105, label %21, label %23

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

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

26:                                               ; preds = %23
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 1
  %29 = icmp ult i32 %27, %24
  %or.cond = and i1 %.not, %29
  %or.cond114 = or i1 %28, %or.cond
  br i1 %or.cond114, label %.thread.sink.split, label %30

30:                                               ; preds = %26
  %.pr = load i32, ptr %8, align 4, !tbaa !5
  %.not107 = icmp eq i32 %.pr, 0
  br i1 %.not107, label %34, label %.thread

.thread.sink.split:                               ; preds = %26, %23, %21, %17
  %.sink = phi i32 [ -1, %17 ], [ -2, %21 ], [ -3, %23 ], [ -7, %26 ]
  store i32 %.sink, ptr %8, align 4, !tbaa !5
  br label %.thread

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

34:                                               ; preds = %30
  switch i32 %24, label %38 [
    i32 0, label %76
    i32 1, label %35
  ]

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

37:                                               ; preds = %35
  store float 1.000000e+00, ptr %5, align 4, !tbaa !9
  br label %76

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

46:                                               ; preds = %38
  %47 = fcmp ogt float %43, %sqrtf108
  br i1 %47, label %48, label %53

48:                                               ; preds = %46, %38
  %sqrtf108.pn = phi float [ %sqrtf, %38 ], [ %sqrtf108, %46 ]
  %storemerge113 = fdiv float %sqrtf108.pn, %43
  store float %storemerge113, ptr %13, align 4, !tbaa !9
  %49 = load i32, ptr %2, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  %51 = mul nsw i32 %50, %49
  %52 = sdiv i32 %51, 2
  store i32 %52, ptr %10, align 4, !tbaa !5
  call void @sscal_(ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef %3, ptr noundef nonnull @c__1) #3
  br label %53

53:                                               ; preds = %46, %48
  %54 = phi i1 [ true, %48 ], [ false, %46 ]
  %55 = load i32, ptr %2, align 4, !tbaa !5
  %56 = add nsw i32 %55, 1
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds float, ptr %15, i64 %57
  call void @ssptrd_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef %4, ptr noundef %7, ptr noundef nonnull %58, ptr noundef nonnull %14) #3
  br i1 %.not, label %60, label %59

59:                                               ; preds = %53
  call void @ssterf_(ptr noundef nonnull %2, ptr noundef %4, ptr noundef %7, ptr noundef nonnull %8) #3
  br label %65

60:                                               ; preds = %53
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = add nsw i32 %61, %56
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %15, i64 %63
  call void @sopgtr_(ptr noundef %1, ptr noundef nonnull %2, ptr noundef %3, ptr noundef nonnull %58, ptr noundef %5, ptr noundef nonnull %6, ptr noundef nonnull %64, ptr noundef nonnull %14) #3
  call void @ssteqr_(ptr noundef %0, ptr noundef nonnull %2, ptr noundef %4, ptr noundef %7, ptr noundef %5, ptr noundef nonnull %6, ptr noundef nonnull %58, ptr noundef nonnull %8) #3
  br label %65

65:                                               ; preds = %60, %59
  br i1 %54, label %66, label %76

66:                                               ; preds = %65
  %67 = load i32, ptr %8, align 4, !tbaa !5
  %68 = icmp eq i32 %67, 0
  br i1 %68, label %69, label %71

69:                                               ; preds = %66
  %70 = load i32, ptr %2, align 4, !tbaa !5
  br label %73

71:                                               ; preds = %66
  %72 = add nsw i32 %67, -1
  br label %73

73:                                               ; preds = %71, %69
  %storemerge = phi i32 [ %72, %71 ], [ %70, %69 ]
  store i32 %storemerge, ptr %12, align 4, !tbaa !5
  %74 = load float, ptr %13, align 4, !tbaa !9
  %75 = fdiv float 1.000000e+00, %74
  store float %75, ptr %11, align 4, !tbaa !9
  call void @sscal_(ptr noundef nonnull %12, ptr noundef nonnull %11, ptr noundef %4, ptr noundef nonnull @c__1) #3
  br label %76

76:                                               ; preds = %65, %73, %35, %37, %34, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  ret void
}

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

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

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

declare float @slamch_(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

declare void @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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}


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