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

; 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 [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i64, align 8
@c__2 = external hidden global i64, align 8
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@c__0 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local i32 @slasq1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca i64, align 8
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca i64, align 8
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, 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
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds float, ptr %25, i32 -1
  store ptr %26, ptr %10, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds float, ptr %27, i32 -1
  store ptr %28, ptr %9, align 8, !tbaa !5
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds float, ptr %29, i32 -1
  store ptr %30, ptr %8, align 8, !tbaa !5
  %31 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 0, ptr %31, align 8, !tbaa !9
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %34 = icmp slt i64 %33, 0
  br i1 %34, label %35, label %41

35:                                               ; preds = %5
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  store i64 -2, ptr %36, align 8, !tbaa !9
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = load i64, ptr %37, align 8, !tbaa !9
  %39 = sub nsw i64 0, %38
  store i64 %39, ptr %12, align 8, !tbaa !9
  %40 = call i32 @xerbla_(ptr noundef @.str, ptr noundef %12)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %303

41:                                               ; preds = %5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = icmp eq i64 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %303

46:                                               ; preds = %41
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = load i64, ptr %47, align 8, !tbaa !9
  %49 = icmp eq i64 %48, 1
  br i1 %49, label %50, label %70

50:                                               ; preds = %46
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds float, ptr %51, i64 1
  %53 = load float, ptr %52, align 4, !tbaa !11
  %54 = fcmp oge float %53, 0.000000e+00
  br i1 %54, label %55, label %59

55:                                               ; preds = %50
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds float, ptr %56, i64 1
  %58 = load float, ptr %57, align 4, !tbaa !11
  br label %64

59:                                               ; preds = %50
  %60 = load ptr, ptr %8, align 8, !tbaa !5
  %61 = getelementptr inbounds float, ptr %60, i64 1
  %62 = load float, ptr %61, align 4, !tbaa !11
  %63 = fneg float %62
  br label %64

64:                                               ; preds = %59, %55
  %65 = phi float [ %58, %55 ], [ %63, %59 ]
  %66 = fpext float %65 to double
  %67 = fptrunc double %66 to float
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = getelementptr inbounds float, ptr %68, i64 1
  store float %67, ptr %69, align 4, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %303

70:                                               ; preds = %46
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = icmp eq i64 %72, 2
  br i1 %73, label %74, label %88

74:                                               ; preds = %70
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = getelementptr inbounds float, ptr %75, i64 1
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds float, ptr %77, i64 1
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds float, ptr %79, i64 2
  %81 = call i32 @slas2_(ptr noundef %76, ptr noundef %78, ptr noundef %80, ptr noundef %21, ptr noundef %22)
  %82 = load float, ptr %22, align 4, !tbaa !11
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = getelementptr inbounds float, ptr %83, i64 1
  store float %82, ptr %84, align 4, !tbaa !11
  %85 = load float, ptr %21, align 4, !tbaa !11
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds float, ptr %86, i64 2
  store float %85, ptr %87, align 4, !tbaa !11
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %303

88:                                               ; preds = %70
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  store float 0.000000e+00, ptr %22, align 4, !tbaa !11
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load i64, ptr %92, align 8, !tbaa !9
  %94 = sub nsw i64 %93, 1
  store i64 %94, ptr %12, align 8, !tbaa !9
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %145, %91
  %96 = load i64, ptr %17, align 8, !tbaa !9
  %97 = load i64, ptr %12, align 8, !tbaa !9
  %98 = icmp sle i64 %96, %97
  br i1 %98, label %99, label %148

99:                                               ; preds = %95
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load i64, ptr %17, align 8, !tbaa !9
  %102 = getelementptr inbounds float, ptr %100, i64 %101
  %103 = load float, ptr %102, align 4, !tbaa !11
  store float %103, ptr %14, align 4, !tbaa !11
  %104 = load float, ptr %14, align 4, !tbaa !11
  %105 = fcmp oge float %104, 0.000000e+00
  br i1 %105, label %106, label %108

106:                                              ; preds = %99
  %107 = load float, ptr %14, align 4, !tbaa !11
  br label %111

108:                                              ; preds = %99
  %109 = load float, ptr %14, align 4, !tbaa !11
  %110 = fneg float %109
  br label %111

111:                                              ; preds = %108, %106
  %112 = phi float [ %107, %106 ], [ %110, %108 ]
  %113 = fpext float %112 to double
  %114 = fptrunc double %113 to float
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load i64, ptr %17, align 8, !tbaa !9
  %117 = getelementptr inbounds float, ptr %115, i64 %116
  store float %114, ptr %117, align 4, !tbaa !11
  %118 = load float, ptr %22, align 4, !tbaa !11
  store float %118, ptr %15, align 4, !tbaa !11
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = load i64, ptr %17, align 8, !tbaa !9
  %121 = getelementptr inbounds float, ptr %119, i64 %120
  %122 = load float, ptr %121, align 4, !tbaa !11
  store float %122, ptr %14, align 4, !tbaa !11
  %123 = load float, ptr %14, align 4, !tbaa !11
  %124 = fcmp oge float %123, 0.000000e+00
  br i1 %124, label %125, label %127

125:                                              ; preds = %111
  %126 = load float, ptr %14, align 4, !tbaa !11
  br label %130

127:                                              ; preds = %111
  %128 = load float, ptr %14, align 4, !tbaa !11
  %129 = fneg float %128
  br label %130

130:                                              ; preds = %127, %125
  %131 = phi float [ %126, %125 ], [ %129, %127 ]
  %132 = fpext float %131 to double
  %133 = fptrunc double %132 to float
  store float %133, ptr %16, align 4, !tbaa !11
  %134 = load float, ptr %15, align 4, !tbaa !11
  %135 = load float, ptr %16, align 4, !tbaa !11
  %136 = fcmp oge float %134, %135
  br i1 %136, label %137, label %139

137:                                              ; preds = %130
  %138 = load float, ptr %15, align 4, !tbaa !11
  br label %141

139:                                              ; preds = %130
  %140 = load float, ptr %16, align 4, !tbaa !11
  br label %141

141:                                              ; preds = %139, %137
  %142 = phi float [ %138, %137 ], [ %140, %139 ]
  %143 = fpext float %142 to double
  %144 = fptrunc double %143 to float
  store float %144, ptr %22, align 4, !tbaa !11
  br label %145

145:                                              ; preds = %141
  %146 = load i64, ptr %17, align 8, !tbaa !9
  %147 = add nsw i64 %146, 1
  store i64 %147, ptr %17, align 8, !tbaa !9
  br label %95, !llvm.loop !13

148:                                              ; preds = %95
  %149 = load ptr, ptr %8, align 8, !tbaa !5
  %150 = load ptr, ptr %7, align 8, !tbaa !5
  %151 = load i64, ptr %150, align 8, !tbaa !9
  %152 = getelementptr inbounds float, ptr %149, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !11
  store float %153, ptr %14, align 4, !tbaa !11
  %154 = load float, ptr %14, align 4, !tbaa !11
  %155 = fcmp oge float %154, 0.000000e+00
  br i1 %155, label %156, label %158

156:                                              ; preds = %148
  %157 = load float, ptr %14, align 4, !tbaa !11
  br label %161

158:                                              ; preds = %148
  %159 = load float, ptr %14, align 4, !tbaa !11
  %160 = fneg float %159
  br label %161

161:                                              ; preds = %158, %156
  %162 = phi float [ %157, %156 ], [ %160, %158 ]
  %163 = fpext float %162 to double
  %164 = fptrunc double %163 to float
  %165 = load ptr, ptr %8, align 8, !tbaa !5
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load i64, ptr %166, align 8, !tbaa !9
  %168 = getelementptr inbounds float, ptr %165, i64 %167
  store float %164, ptr %168, align 4, !tbaa !11
  %169 = load float, ptr %22, align 4, !tbaa !11
  %170 = fcmp oeq float %169, 0.000000e+00
  br i1 %170, label %171, label %176

171:                                              ; preds = %161
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = load ptr, ptr %8, align 8, !tbaa !5
  %174 = getelementptr inbounds float, ptr %173, i64 1
  %175 = call i32 @slasrt_(ptr noundef @.str.1, ptr noundef %172, ptr noundef %174, ptr noundef %20)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %303

176:                                              ; preds = %161
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = load i64, ptr %177, align 8, !tbaa !9
  store i64 %178, ptr %12, align 8, !tbaa !9
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %179

179:                                              ; preds = %200, %176
  %180 = load i64, ptr %17, align 8, !tbaa !9
  %181 = load i64, ptr %12, align 8, !tbaa !9
  %182 = icmp sle i64 %180, %181
  br i1 %182, label %183, label %203

183:                                              ; preds = %179
  %184 = load float, ptr %22, align 4, !tbaa !11
  store float %184, ptr %14, align 4, !tbaa !11
  %185 = load ptr, ptr %8, align 8, !tbaa !5
  %186 = load i64, ptr %17, align 8, !tbaa !9
  %187 = getelementptr inbounds float, ptr %185, i64 %186
  %188 = load float, ptr %187, align 4, !tbaa !11
  store float %188, ptr %15, align 4, !tbaa !11
  %189 = load float, ptr %14, align 4, !tbaa !11
  %190 = load float, ptr %15, align 4, !tbaa !11
  %191 = fcmp oge float %189, %190
  br i1 %191, label %192, label %194

192:                                              ; preds = %183
  %193 = load float, ptr %14, align 4, !tbaa !11
  br label %196

194:                                              ; preds = %183
  %195 = load float, ptr %15, align 4, !tbaa !11
  br label %196

196:                                              ; preds = %194, %192
  %197 = phi float [ %193, %192 ], [ %195, %194 ]
  %198 = fpext float %197 to double
  %199 = fptrunc double %198 to float
  store float %199, ptr %22, align 4, !tbaa !11
  br label %200

200:                                              ; preds = %196
  %201 = load i64, ptr %17, align 8, !tbaa !9
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %17, align 8, !tbaa !9
  br label %179, !llvm.loop !15

203:                                              ; preds = %179
  %204 = call double @slamch_(ptr noundef @.str.2)
  %205 = fptrunc double %204 to float
  store float %205, ptr %18, align 4, !tbaa !11
  %206 = call double @slamch_(ptr noundef @.str.3)
  %207 = fptrunc double %206 to float
  store float %207, ptr %23, align 4, !tbaa !11
  %208 = load float, ptr %18, align 4, !tbaa !11
  %209 = load float, ptr %23, align 4, !tbaa !11
  %210 = fdiv float %208, %209
  %211 = fpext float %210 to double
  %212 = call double @sqrt(double noundef %211) #4
  %213 = fptrunc double %212 to float
  store float %213, ptr %19, align 4, !tbaa !11
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds float, ptr %215, i64 1
  %217 = load ptr, ptr %10, align 8, !tbaa !5
  %218 = getelementptr inbounds float, ptr %217, i64 1
  %219 = call i32 @f2c_scopy(ptr noundef %214, ptr noundef %216, ptr noundef @c__1, ptr noundef %218, ptr noundef @c__2)
  %220 = load ptr, ptr %7, align 8, !tbaa !5
  %221 = load i64, ptr %220, align 8, !tbaa !9
  %222 = sub nsw i64 %221, 1
  store i64 %222, ptr %12, align 8, !tbaa !9
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = getelementptr inbounds float, ptr %223, i64 1
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  %226 = getelementptr inbounds float, ptr %225, i64 2
  %227 = call i32 @f2c_scopy(ptr noundef %12, ptr noundef %224, ptr noundef @c__1, ptr noundef %226, ptr noundef @c__2)
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  %229 = load i64, ptr %228, align 8, !tbaa !9
  %230 = shl i64 %229, 1
  %231 = sub nsw i64 %230, 1
  store i64 %231, ptr %12, align 8, !tbaa !9
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = load i64, ptr %232, align 8, !tbaa !9
  %234 = shl i64 %233, 1
  %235 = sub nsw i64 %234, 1
  store i64 %235, ptr %13, align 8, !tbaa !9
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = getelementptr inbounds float, ptr %236, i64 1
  %238 = call i32 @slascl_(ptr noundef @.str.4, ptr noundef @c__0, ptr noundef @c__0, ptr noundef %22, ptr noundef %19, ptr noundef %12, ptr noundef @c__1, ptr noundef %237, ptr noundef %13, ptr noundef %20)
  %239 = load ptr, ptr %7, align 8, !tbaa !5
  %240 = load i64, ptr %239, align 8, !tbaa !9
  %241 = shl i64 %240, 1
  %242 = sub nsw i64 %241, 1
  store i64 %242, ptr %12, align 8, !tbaa !9
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %243

243:                                              ; preds = %258, %203
  %244 = load i64, ptr %17, align 8, !tbaa !9
  %245 = load i64, ptr %12, align 8, !tbaa !9
  %246 = icmp sle i64 %244, %245
  br i1 %246, label %247, label %261

247:                                              ; preds = %243
  %248 = load ptr, ptr %10, align 8, !tbaa !5
  %249 = load i64, ptr %17, align 8, !tbaa !9
  %250 = getelementptr inbounds float, ptr %248, i64 %249
  %251 = load float, ptr %250, align 4, !tbaa !11
  store float %251, ptr %14, align 4, !tbaa !11
  %252 = load float, ptr %14, align 4, !tbaa !11
  %253 = load float, ptr %14, align 4, !tbaa !11
  %254 = fmul float %252, %253
  %255 = load ptr, ptr %10, align 8, !tbaa !5
  %256 = load i64, ptr %17, align 8, !tbaa !9
  %257 = getelementptr inbounds float, ptr %255, i64 %256
  store float %254, ptr %257, align 4, !tbaa !11
  br label %258

258:                                              ; preds = %247
  %259 = load i64, ptr %17, align 8, !tbaa !9
  %260 = add nsw i64 %259, 1
  store i64 %260, ptr %17, align 8, !tbaa !9
  br label %243, !llvm.loop !16

261:                                              ; preds = %243
  %262 = load ptr, ptr %10, align 8, !tbaa !5
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = load i64, ptr %263, align 8, !tbaa !9
  %265 = mul nsw i64 %264, 2
  %266 = getelementptr inbounds float, ptr %262, i64 %265
  store float 0.000000e+00, ptr %266, align 4, !tbaa !11
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  %268 = load ptr, ptr %10, align 8, !tbaa !5
  %269 = getelementptr inbounds float, ptr %268, i64 1
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = call i32 @slasq2_(ptr noundef %267, ptr noundef %269, ptr noundef %270)
  %272 = load ptr, ptr %11, align 8, !tbaa !5
  %273 = load i64, ptr %272, align 8, !tbaa !9
  %274 = icmp eq i64 %273, 0
  br i1 %274, label %275, label %302

275:                                              ; preds = %261
  %276 = load ptr, ptr %7, align 8, !tbaa !5
  %277 = load i64, ptr %276, align 8, !tbaa !9
  store i64 %277, ptr %12, align 8, !tbaa !9
  store i64 1, ptr %17, align 8, !tbaa !9
  br label %278

278:                                              ; preds = %293, %275
  %279 = load i64, ptr %17, align 8, !tbaa !9
  %280 = load i64, ptr %12, align 8, !tbaa !9
  %281 = icmp sle i64 %279, %280
  br i1 %281, label %282, label %296

282:                                              ; preds = %278
  %283 = load ptr, ptr %10, align 8, !tbaa !5
  %284 = load i64, ptr %17, align 8, !tbaa !9
  %285 = getelementptr inbounds float, ptr %283, i64 %284
  %286 = load float, ptr %285, align 4, !tbaa !11
  %287 = fpext float %286 to double
  %288 = call double @sqrt(double noundef %287) #4
  %289 = fptrunc double %288 to float
  %290 = load ptr, ptr %8, align 8, !tbaa !5
  %291 = load i64, ptr %17, align 8, !tbaa !9
  %292 = getelementptr inbounds float, ptr %290, i64 %291
  store float %289, ptr %292, align 4, !tbaa !11
  br label %293

293:                                              ; preds = %282
  %294 = load i64, ptr %17, align 8, !tbaa !9
  %295 = add nsw i64 %294, 1
  store i64 %295, ptr %17, align 8, !tbaa !9
  br label %278, !llvm.loop !17

296:                                              ; preds = %278
  %297 = load ptr, ptr %7, align 8, !tbaa !5
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = getelementptr inbounds float, ptr %298, i64 1
  %300 = load ptr, ptr %7, align 8, !tbaa !5
  %301 = call i32 @slascl_(ptr noundef @.str.4, ptr noundef @c__0, ptr noundef @c__0, ptr noundef %19, ptr noundef %22, ptr noundef %297, ptr noundef @c__1, ptr noundef %299, ptr noundef %300, ptr noundef %20)
  br label %302

302:                                              ; preds = %296, %261
  store i32 0, ptr %6, align 4
  store i32 1, ptr %24, align 4
  br label %303

303:                                              ; preds = %302, %171, %74, %64, %45, %35
  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 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  %304 = load i32, ptr %6, align 4
  ret i32 %304
}

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

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

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

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

declare double @slamch_(ptr noundef) #2

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

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

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

declare i32 @slasq2_(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}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


; 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 [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@c__1 = external hidden global i64, align 8
@c__2 = external hidden global i64, align 8
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@c__0 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @slasq1_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca float, align 4
  %9 = alloca i64, align 8
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #4
  %12 = getelementptr inbounds i8, ptr %3, i64 -4
  %13 = getelementptr inbounds i8, ptr %2, i64 -4
  %14 = getelementptr inbounds i8, ptr %1, i64 -4
  store i64 0, ptr %4, align 8, !tbaa !5
  %15 = load i64, ptr %0, align 8, !tbaa !5
  %16 = icmp slt i64 %15, 0
  br i1 %16, label %17, label %19

17:                                               ; preds = %5
  store i64 -2, ptr %4, align 8, !tbaa !5
  store i64 2, ptr %6, align 8, !tbaa !5
  %18 = call i32 @xerbla_(ptr noundef nonnull @.str, ptr noundef nonnull %6) #4
  br label %115

19:                                               ; preds = %5
  switch i64 %15, label %.lr.ph.preheader [
    i64 0, label %115
    i64 1, label %20
    i64 2, label %25
  ]

20:                                               ; preds = %19
  %21 = load float, ptr %1, align 4, !tbaa !9
  %22 = fcmp ult float %21, 0.000000e+00
  %23 = fneg float %21
  %24 = select i1 %22, float %23, float %21
  store float %24, ptr %1, align 4, !tbaa !9
  br label %115

25:                                               ; preds = %19
  %26 = getelementptr inbounds i8, ptr %1, i64 4
  %27 = call i32 @slas2_(ptr noundef %1, ptr noundef %2, ptr noundef nonnull %26, ptr noundef nonnull %10, ptr noundef nonnull %11) #4
  %28 = load float, ptr %11, align 4, !tbaa !9
  store float %28, ptr %1, align 4, !tbaa !9
  %29 = load float, ptr %10, align 4, !tbaa !9
  store float %29, ptr %26, align 4, !tbaa !9
  br label %115

.lr.ph.preheader:                                 ; preds = %19
  %30 = add nsw i64 %15, -1
  store i64 %30, ptr %6, align 8, !tbaa !5
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.092100 = phi i64 [ %44, %.lr.ph ], [ 1, %.lr.ph.preheader ]
  %31 = phi float [ %43, %.lr.ph ], [ 0.000000e+00, %.lr.ph.preheader ]
  %32 = getelementptr inbounds float, ptr %14, i64 %.092100
  %33 = load float, ptr %32, align 4, !tbaa !9
  %34 = fcmp oge float %33, 0.000000e+00
  %35 = fneg float %33
  %36 = select i1 %34, float %33, float %35
  store float %36, ptr %32, align 4, !tbaa !9
  %37 = getelementptr inbounds float, ptr %13, i64 %.092100
  %38 = load float, ptr %37, align 4, !tbaa !9
  %39 = fcmp oge float %38, 0.000000e+00
  %40 = fneg float %38
  %41 = select i1 %39, float %38, float %40
  %42 = fcmp oge float %31, %41
  %43 = select i1 %42, float %31, float %41
  %44 = add nuw nsw i64 %.092100, 1
  %exitcond.not = icmp eq i64 %44, %15
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph
  store float %43, ptr %11, align 4, !tbaa !9
  %45 = getelementptr inbounds float, ptr %14, i64 %15
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = fcmp oge float %46, 0.000000e+00
  %48 = fneg float %46
  %49 = select i1 %47, float %46, float %48
  store float %49, ptr %45, align 4, !tbaa !9
  %50 = fcmp oeq float %43, 0.000000e+00
  br i1 %50, label %51, label %.lr.ph106.preheader

51:                                               ; preds = %._crit_edge
  %52 = call i32 @slasrt_(ptr noundef nonnull @.str.1, ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %9) #4
  br label %115

.lr.ph106.preheader:                              ; preds = %._crit_edge
  %smax = tail call i64 @llvm.smax.i64(i64 %15, i64 1)
  %xtraiter = and i64 %smax, 3
  %53 = icmp slt i64 %15, 4
  br i1 %53, label %._crit_edge107.unr-lcssa, label %.lr.ph106.preheader.new

.lr.ph106.preheader.new:                          ; preds = %.lr.ph106.preheader
  %unroll_iter = and i64 %smax, 9223372036854775804
  %invariant.gep = getelementptr i8, ptr %14, i64 8
  %invariant.gep133 = getelementptr i8, ptr %14, i64 12
  br label %.lr.ph106

.lr.ph106:                                        ; preds = %.lr.ph106, %.lr.ph106.preheader.new
  %.1104 = phi i64 [ 1, %.lr.ph106.preheader.new ], [ %69, %.lr.ph106 ]
  %54 = phi float [ %43, %.lr.ph106.preheader.new ], [ %68, %.lr.ph106 ]
  %niter = phi i64 [ 0, %.lr.ph106.preheader.new ], [ %niter.next.3, %.lr.ph106 ]
  %55 = getelementptr inbounds float, ptr %14, i64 %.1104
  %56 = load float, ptr %55, align 4, !tbaa !9
  %57 = fcmp oge float %54, %56
  %58 = select i1 %57, float %54, float %56
  %59 = getelementptr float, ptr %1, i64 %.1104
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = fcmp oge float %58, %60
  %62 = select i1 %61, float %58, float %60
  %gep = getelementptr float, ptr %invariant.gep, i64 %.1104
  %63 = load float, ptr %gep, align 4, !tbaa !9
  %64 = fcmp oge float %62, %63
  %65 = select i1 %64, float %62, float %63
  %gep134 = getelementptr float, ptr %invariant.gep133, i64 %.1104
  %66 = load float, ptr %gep134, align 4, !tbaa !9
  %67 = fcmp oge float %65, %66
  %68 = select i1 %67, float %65, float %66
  %69 = add nuw i64 %.1104, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge107.unr-lcssa, label %.lr.ph106, !llvm.loop !13

._crit_edge107.unr-lcssa:                         ; preds = %.lr.ph106, %.lr.ph106.preheader
  %.lcssa.ph = phi float [ poison, %.lr.ph106.preheader ], [ %68, %.lr.ph106 ]
  %.1104.unr = phi i64 [ 1, %.lr.ph106.preheader ], [ %69, %.lr.ph106 ]
  %.unr = phi float [ %43, %.lr.ph106.preheader ], [ %68, %.lr.ph106 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge107, label %.lr.ph106.epil

.lr.ph106.epil:                                   ; preds = %._crit_edge107.unr-lcssa, %.lr.ph106.epil
  %.1104.epil = phi i64 [ %75, %.lr.ph106.epil ], [ %.1104.unr, %._crit_edge107.unr-lcssa ]
  %70 = phi float [ %74, %.lr.ph106.epil ], [ %.unr, %._crit_edge107.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph106.epil ], [ 0, %._crit_edge107.unr-lcssa ]
  %71 = getelementptr inbounds float, ptr %14, i64 %.1104.epil
  %72 = load float, ptr %71, align 4, !tbaa !9
  %73 = fcmp oge float %70, %72
  %74 = select i1 %73, float %70, float %72
  %75 = add nuw i64 %.1104.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge107, label %.lr.ph106.epil, !llvm.loop !14

._crit_edge107:                                   ; preds = %.lr.ph106.epil, %._crit_edge107.unr-lcssa
  %.lcssa = phi float [ %.lcssa.ph, %._crit_edge107.unr-lcssa ], [ %74, %.lr.ph106.epil ]
  store float %.lcssa, ptr %11, align 4, !tbaa !9
  %76 = tail call double @slamch_(ptr noundef nonnull @.str.2) #4
  %77 = fptrunc double %76 to float
  %78 = tail call double @slamch_(ptr noundef nonnull @.str.3) #4
  %79 = fptrunc double %78 to float
  %80 = fdiv float %77, %79
  %sqrtf = tail call float @sqrtf(float noundef %80) #5
  store float %sqrtf, ptr %8, align 4, !tbaa !9
  %81 = tail call i32 @f2c_scopy(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull @c__1, ptr noundef %3, ptr noundef nonnull @c__2) #4
  %82 = load i64, ptr %0, align 8, !tbaa !5
  %83 = add nsw i64 %82, -1
  store i64 %83, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %3, i64 4
  %85 = call i32 @f2c_scopy(ptr noundef nonnull %6, ptr noundef %2, ptr noundef nonnull @c__1, ptr noundef nonnull %84, ptr noundef nonnull @c__2) #4
  %86 = load i64, ptr %0, align 8, !tbaa !5
  %87 = shl i64 %86, 1
  %88 = add nsw i64 %87, -1
  store i64 %88, ptr %6, align 8, !tbaa !5
  store i64 %88, ptr %7, align 8, !tbaa !5
  %89 = call i32 @slascl_(ptr noundef nonnull @.str.4, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull %11, ptr noundef nonnull %8, ptr noundef nonnull %6, ptr noundef nonnull @c__1, ptr noundef %3, ptr noundef nonnull %7, ptr noundef nonnull %9) #4
  %90 = load i64, ptr %0, align 8, !tbaa !5
  %91 = shl i64 %90, 1
  %92 = add nsw i64 %91, -1
  store i64 %92, ptr %6, align 8, !tbaa !5
  %.not96.not109 = icmp sgt i64 %91, 1
  br i1 %.not96.not109, label %.lr.ph112.preheader, label %._crit_edge113

.lr.ph112.preheader:                              ; preds = %._crit_edge107
  %min.iters.check = icmp ult i64 %91, 9
  br i1 %min.iters.check, label %.lr.ph112.preheader126, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph112.preheader
  %93 = add nsw i64 %91, -1
  %n.vec = and i64 %93, -8
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %94 = getelementptr float, ptr %3, i64 %index
  %95 = getelementptr inbounds i8, ptr %94, i64 16
  %wide.load = load <4 x float>, ptr %94, align 4, !tbaa !9
  %wide.load125 = load <4 x float>, ptr %95, align 4, !tbaa !9
  %96 = fmul <4 x float> %wide.load, %wide.load
  %97 = fmul <4 x float> %wide.load125, %wide.load125
  store <4 x float> %96, ptr %94, align 4, !tbaa !9
  store <4 x float> %97, ptr %95, align 4, !tbaa !9
  %index.next = add nuw i64 %index, 8
  %98 = icmp eq i64 %index.next, %n.vec
  br i1 %98, label %.lr.ph112.preheader126, label %vector.body, !llvm.loop !16

.lr.ph112.preheader126:                           ; preds = %vector.body, %.lr.ph112.preheader
  %.2110.ph = phi i64 [ 1, %.lr.ph112.preheader ], [ %ind.end, %vector.body ]
  br label %.lr.ph112

.lr.ph112:                                        ; preds = %.lr.ph112.preheader126, %.lr.ph112
  %.2110 = phi i64 [ %102, %.lr.ph112 ], [ %.2110.ph, %.lr.ph112.preheader126 ]
  %99 = getelementptr inbounds float, ptr %12, i64 %.2110
  %100 = load float, ptr %99, align 4, !tbaa !9
  %101 = fmul float %100, %100
  store float %101, ptr %99, align 4, !tbaa !9
  %102 = add nuw nsw i64 %.2110, 1
  %exitcond122.not = icmp eq i64 %102, %91
  br i1 %exitcond122.not, label %._crit_edge113, label %.lr.ph112, !llvm.loop !19

._crit_edge113:                                   ; preds = %.lr.ph112, %._crit_edge107
  %.idx = shl nsw i64 %90, 3
  %103 = getelementptr inbounds i8, ptr %12, i64 %.idx
  store float 0.000000e+00, ptr %103, align 4, !tbaa !9
  %104 = call i32 @slasq2_(ptr noundef nonnull %0, ptr noundef %3, ptr noundef nonnull %4) #4
  %105 = load i64, ptr %4, align 8, !tbaa !5
  %106 = icmp eq i64 %105, 0
  br i1 %106, label %107, label %115

107:                                              ; preds = %._crit_edge113
  %108 = load i64, ptr %0, align 8, !tbaa !5
  store i64 %108, ptr %6, align 8, !tbaa !5
  %.not97114 = icmp slt i64 %108, 1
  br i1 %.not97114, label %._crit_edge118, label %.lr.ph117

.lr.ph117:                                        ; preds = %107, %.lr.ph117
  %.3115 = phi i64 [ %112, %.lr.ph117 ], [ 1, %107 ]
  %109 = getelementptr inbounds float, ptr %12, i64 %.3115
  %110 = load float, ptr %109, align 4, !tbaa !9
  %sqrtf98 = call float @sqrtf(float noundef %110) #5
  %111 = getelementptr inbounds float, ptr %14, i64 %.3115
  store float %sqrtf98, ptr %111, align 4, !tbaa !9
  %112 = add nuw nsw i64 %.3115, 1
  %113 = load i64, ptr %6, align 8, !tbaa !5
  %.not97.not = icmp slt i64 %.3115, %113
  br i1 %.not97.not, label %.lr.ph117, label %._crit_edge118, !llvm.loop !20

._crit_edge118:                                   ; preds = %.lr.ph117, %107
  %114 = call i32 @slascl_(ptr noundef nonnull @.str.4, ptr noundef nonnull @c__0, ptr noundef nonnull @c__0, ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef nonnull %0, ptr noundef nonnull @c__1, ptr noundef %1, ptr noundef nonnull %0, ptr noundef nonnull %9) #4
  br label %115

115:                                              ; preds = %._crit_edge113, %._crit_edge118, %19, %51, %25, %20, %17
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  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 i32 @xerbla_(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

declare double @slamch_(ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #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 }
attributes #5 = { 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}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.unroll.disable"}
!16 = distinct !{!16, !12, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !12, !18, !17}
!20 = distinct !{!20, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass