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

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

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

52:                                               ; preds = %9
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = call i64 @lsame_(ptr noundef %53, ptr noundef @.str.1)
  %55 = icmp ne i64 %54, 0
  br i1 %55, label %58, label %56

56:                                               ; preds = %52
  %57 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -1, ptr %57, align 8, !tbaa !9
  br label %88

58:                                               ; preds = %52, %9
  %59 = load ptr, ptr %12, align 8, !tbaa !5
  %60 = load i64, ptr %59, align 8, !tbaa !9
  %61 = icmp slt i64 %60, 0
  br i1 %61, label %62, label %64

62:                                               ; preds = %58
  %63 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -2, ptr %63, align 8, !tbaa !9
  br label %87

64:                                               ; preds = %58
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = load i64, ptr %65, align 8, !tbaa !9
  %67 = load ptr, ptr %12, align 8, !tbaa !5
  %68 = load i64, ptr %67, align 8, !tbaa !9
  %69 = icmp sge i64 1, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  br label %74

71:                                               ; preds = %64
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  %73 = load i64, ptr %72, align 8, !tbaa !9
  br label %74

74:                                               ; preds = %71, %70
  %75 = phi i64 [ 1, %70 ], [ %73, %71 ]
  %76 = icmp slt i64 %66, %75
  br i1 %76, label %77, label %79

77:                                               ; preds = %74
  %78 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -4, ptr %78, align 8, !tbaa !9
  br label %86

79:                                               ; preds = %74
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = load float, ptr %80, align 4, !tbaa !11
  %82 = fcmp olt float %81, 0.000000e+00
  br i1 %82, label %83, label %85

83:                                               ; preds = %79
  %84 = load ptr, ptr %19, align 8, !tbaa !5
  store i64 -5, ptr %84, align 8, !tbaa !9
  br label %85

85:                                               ; preds = %83, %79
  br label %86

86:                                               ; preds = %85, %77
  br label %87

87:                                               ; preds = %86, %62
  br label %88

88:                                               ; preds = %87, %56
  %89 = load ptr, ptr %19, align 8, !tbaa !5
  %90 = load i64, ptr %89, align 8, !tbaa !9
  %91 = icmp ne i64 %90, 0
  br i1 %91, label %92, label %97

92:                                               ; preds = %88
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = load i64, ptr %93, align 8, !tbaa !9
  %95 = sub nsw i64 0, %94
  store i64 %95, ptr %22, align 8, !tbaa !9
  %96 = call i32 @xerbla_(ptr noundef @.str.2, ptr noundef %22)
  store i32 0, ptr %10, align 4
  store i32 1, ptr %34, align 4
  br label %253

97:                                               ; preds = %88
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  store float 0.000000e+00, ptr %98, align 4, !tbaa !11
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = load i64, ptr %99, align 8, !tbaa !9
  %101 = icmp eq i64 %100, 0
  br i1 %101, label %102, label %104

102:                                              ; preds = %97
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  store float 1.000000e+00, ptr %103, align 4, !tbaa !11
  store i32 0, ptr %10, align 4
  store i32 1, ptr %34, align 4
  br label %253

104:                                              ; preds = %97
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = load float, ptr %105, align 4, !tbaa !11
  %107 = fcmp oeq float %106, 0.000000e+00
  br i1 %107, label %108, label %109

108:                                              ; preds = %104
  store i32 0, ptr %10, align 4
  store i32 1, ptr %34, align 4
  br label %253

109:                                              ; preds = %104
  br label %110

110:                                              ; preds = %109
  %111 = call double @slamch_(ptr noundef @.str.3)
  %112 = fptrunc double %111 to float
  store float %112, ptr %33, align 4, !tbaa !11
  store i64 0, ptr %25, align 8, !tbaa !9
  %113 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 78, ptr %113, align 1, !tbaa !13
  br label %114

114:                                              ; preds = %240, %110
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load ptr, ptr %17, align 8, !tbaa !5
  %117 = load ptr, ptr %12, align 8, !tbaa !5
  %118 = load i64, ptr %117, align 8, !tbaa !9
  %119 = add nsw i64 %118, 1
  %120 = getelementptr inbounds float, ptr %116, i64 %119
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = getelementptr inbounds float, ptr %121, i64 1
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = getelementptr inbounds i64, ptr %123, i64 1
  %125 = getelementptr inbounds [3 x i64], ptr %27, i64 0, i64 0
  %126 = call i32 @slacn2_(ptr noundef %115, ptr noundef %120, ptr noundef %122, ptr noundef %124, ptr noundef %31, ptr noundef %25, ptr noundef %125)
  %127 = load i64, ptr %25, align 8, !tbaa !9
  %128 = icmp ne i64 %127, 0
  br i1 %128, label %129, label %241

129:                                              ; preds = %114
  %130 = load i64, ptr %28, align 8, !tbaa !9
  %131 = icmp ne i64 %130, 0
  br i1 %131, label %132, label %166

132:                                              ; preds = %129
  %133 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %134 = load ptr, ptr %12, align 8, !tbaa !5
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = load i64, ptr %21, align 8, !tbaa !9
  %137 = getelementptr inbounds float, ptr %135, i64 %136
  %138 = load ptr, ptr %14, align 8, !tbaa !5
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = getelementptr inbounds float, ptr %139, i64 1
  %141 = load ptr, ptr %17, align 8, !tbaa !5
  %142 = load ptr, ptr %12, align 8, !tbaa !5
  %143 = load i64, ptr %142, align 8, !tbaa !9
  %144 = shl i64 %143, 1
  %145 = add nsw i64 %144, 1
  %146 = getelementptr inbounds float, ptr %141, i64 %145
  %147 = load ptr, ptr %19, align 8, !tbaa !5
  %148 = call i32 @slatrs_(ptr noundef @.str.4, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %133, ptr noundef %134, ptr noundef %137, ptr noundef %138, ptr noundef %140, ptr noundef %29, ptr noundef %146, ptr noundef %147)
  %149 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %149, align 1, !tbaa !13
  %150 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = load i64, ptr %21, align 8, !tbaa !9
  %154 = getelementptr inbounds float, ptr %152, i64 %153
  %155 = load ptr, ptr %14, align 8, !tbaa !5
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = getelementptr inbounds float, ptr %156, i64 1
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = load ptr, ptr %12, align 8, !tbaa !5
  %160 = load i64, ptr %159, align 8, !tbaa !9
  %161 = shl i64 %160, 1
  %162 = add nsw i64 %161, 1
  %163 = getelementptr inbounds float, ptr %158, i64 %162
  %164 = load ptr, ptr %19, align 8, !tbaa !5
  %165 = call i32 @slatrs_(ptr noundef @.str.4, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %150, ptr noundef %151, ptr noundef %154, ptr noundef %155, ptr noundef %157, ptr noundef %30, ptr noundef %163, ptr noundef %164)
  br label %200

166:                                              ; preds = %129
  %167 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %168 = load ptr, ptr %12, align 8, !tbaa !5
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = load i64, ptr %21, align 8, !tbaa !9
  %171 = getelementptr inbounds float, ptr %169, i64 %170
  %172 = load ptr, ptr %14, align 8, !tbaa !5
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = getelementptr inbounds float, ptr %173, i64 1
  %175 = load ptr, ptr %17, align 8, !tbaa !5
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = load i64, ptr %176, align 8, !tbaa !9
  %178 = shl i64 %177, 1
  %179 = add nsw i64 %178, 1
  %180 = getelementptr inbounds float, ptr %175, i64 %179
  %181 = load ptr, ptr %19, align 8, !tbaa !5
  %182 = call i32 @slatrs_(ptr noundef @.str.8, ptr noundef @.str.7, ptr noundef @.str.6, ptr noundef %167, ptr noundef %168, ptr noundef %171, ptr noundef %172, ptr noundef %174, ptr noundef %29, ptr noundef %180, ptr noundef %181)
  %183 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  store i8 89, ptr %183, align 1, !tbaa !13
  %184 = getelementptr inbounds [1 x i8], ptr %32, i64 0, i64 0
  %185 = load ptr, ptr %12, align 8, !tbaa !5
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = load i64, ptr %21, align 8, !tbaa !9
  %188 = getelementptr inbounds float, ptr %186, i64 %187
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  %190 = load ptr, ptr %17, align 8, !tbaa !5
  %191 = getelementptr inbounds float, ptr %190, i64 1
  %192 = load ptr, ptr %17, align 8, !tbaa !5
  %193 = load ptr, ptr %12, align 8, !tbaa !5
  %194 = load i64, ptr %193, align 8, !tbaa !9
  %195 = shl i64 %194, 1
  %196 = add nsw i64 %195, 1
  %197 = getelementptr inbounds float, ptr %192, i64 %196
  %198 = load ptr, ptr %19, align 8, !tbaa !5
  %199 = call i32 @slatrs_(ptr noundef @.str.8, ptr noundef @.str.5, ptr noundef @.str.6, ptr noundef %184, ptr noundef %185, ptr noundef %188, ptr noundef %189, ptr noundef %191, ptr noundef %30, ptr noundef %197, ptr noundef %198)
  br label %200

200:                                              ; preds = %166, %132
  %201 = load float, ptr %29, align 4, !tbaa !11
  %202 = load float, ptr %30, align 4, !tbaa !11
  %203 = fmul float %201, %202
  store float %203, ptr %26, align 4, !tbaa !11
  %204 = load float, ptr %26, align 4, !tbaa !11
  %205 = fcmp une float %204, 1.000000e+00
  br i1 %205, label %206, label %240

206:                                              ; preds = %200
  %207 = load ptr, ptr %12, align 8, !tbaa !5
  %208 = load ptr, ptr %17, align 8, !tbaa !5
  %209 = getelementptr inbounds float, ptr %208, i64 1
  %210 = call i64 @f2c_isamax(ptr noundef %207, ptr noundef %209, ptr noundef @c__1)
  store i64 %210, ptr %24, align 8, !tbaa !9
  %211 = load float, ptr %26, align 4, !tbaa !11
  %212 = fpext float %211 to double
  %213 = load ptr, ptr %17, align 8, !tbaa !5
  %214 = load i64, ptr %24, align 8, !tbaa !9
  %215 = getelementptr inbounds float, ptr %213, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !11
  store float %216, ptr %23, align 4, !tbaa !11
  %217 = load float, ptr %23, align 4, !tbaa !11
  %218 = fcmp oge float %217, 0.000000e+00
  br i1 %218, label %219, label %221

219:                                              ; preds = %206
  %220 = load float, ptr %23, align 4, !tbaa !11
  br label %224

221:                                              ; preds = %206
  %222 = load float, ptr %23, align 4, !tbaa !11
  %223 = fneg float %222
  br label %224

224:                                              ; preds = %221, %219
  %225 = phi float [ %220, %219 ], [ %223, %221 ]
  %226 = fpext float %225 to double
  %227 = load float, ptr %33, align 4, !tbaa !11
  %228 = fpext float %227 to double
  %229 = fmul double %226, %228
  %230 = fcmp olt double %212, %229
  br i1 %230, label %234, label %231

231:                                              ; preds = %224
  %232 = load float, ptr %26, align 4, !tbaa !11
  %233 = fcmp oeq float %232, 0.000000e+00
  br i1 %233, label %234, label %235

234:                                              ; preds = %231, %224
  br label %252

235:                                              ; preds = %231
  %236 = load ptr, ptr %12, align 8, !tbaa !5
  %237 = load ptr, ptr %17, align 8, !tbaa !5
  %238 = getelementptr inbounds float, ptr %237, i64 1
  %239 = call i32 @srscl_(ptr noundef %236, ptr noundef %26, ptr noundef %238, ptr noundef @c__1)
  br label %240

240:                                              ; preds = %235, %200
  br label %114

241:                                              ; preds = %114
  %242 = load float, ptr %31, align 4, !tbaa !11
  %243 = fcmp une float %242, 0.000000e+00
  br i1 %243, label %244, label %251

244:                                              ; preds = %241
  %245 = load float, ptr %31, align 4, !tbaa !11
  %246 = fdiv float 1.000000e+00, %245
  %247 = load ptr, ptr %15, align 8, !tbaa !5
  %248 = load float, ptr %247, align 4, !tbaa !11
  %249 = fdiv float %246, %248
  %250 = load ptr, ptr %16, align 8, !tbaa !5
  store float %249, ptr %250, align 4, !tbaa !11
  br label %251

251:                                              ; preds = %244, %241
  br label %252

252:                                              ; preds = %251, %234
  store i32 0, ptr %10, align 4
  store i32 1, ptr %34, align 4
  br label %253

253:                                              ; preds = %252, %108, %102, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  %254 = load i32, ptr %10, align 4
  ret i32 %254
}

; 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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!7, !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 [7 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [6 x i8], align 1
@c__1 = external hidden global i64, align 8

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @spocon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef writeonly %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) local_unnamed_addr #0 {
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca float, align 4
  %13 = alloca [3 x i64], align 16
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #4
  %18 = getelementptr inbounds i8, ptr %6, i64 -4
  store i64 0, ptr %8, align 8, !tbaa !5
  %19 = tail call i64 @lsame_(ptr noundef %0, ptr noundef nonnull @.str) #4
  %.not = icmp eq i64 %19, 0
  br i1 %.not, label %20, label %22

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

22:                                               ; preds = %20, %9
  %23 = load i64, ptr %1, 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 %3, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %23, i64 1)
  %27 = icmp slt i64 %26, %spec.select
  br i1 %27, label %.thread.sink.split, label %28

28:                                               ; preds = %25
  %29 = load float, ptr %4, align 4, !tbaa !9
  %30 = fcmp olt float %29, 0.000000e+00
  br i1 %30, label %.thread.sink.split, label %31

31:                                               ; preds = %28
  %.pr = load i64, ptr %8, align 8, !tbaa !5
  %.not79 = icmp eq i64 %.pr, 0
  br i1 %.not79, label %35, label %.thread

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

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

35:                                               ; preds = %31
  store float 0.000000e+00, ptr %5, align 4, !tbaa !9
  %36 = icmp eq i64 %23, 0
  br i1 %36, label %37, label %38

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

38:                                               ; preds = %35
  %39 = load float, ptr %4, align 4, !tbaa !9
  %40 = fcmp oeq float %39, 0.000000e+00
  br i1 %40, label %.loopexit, label %41

41:                                               ; preds = %38
  %42 = tail call double @slamch_(ptr noundef nonnull @.str.3) #4
  store i64 0, ptr %11, align 8, !tbaa !5
  store i8 78, ptr %17, align 1, !tbaa !11
  %43 = load i64, ptr %1, align 8, !tbaa !5
  %44 = getelementptr float, ptr %6, i64 %43
  %45 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %44, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %46 = load i64, ptr %11, align 8, !tbaa !5
  %.not8085 = icmp eq i64 %46, 0
  br i1 %.not8085, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %41
  %47 = fptrunc double %42 to float
  %48 = fpext float %47 to double
  br i1 %.not, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %74
  %49 = load i64, ptr %1, align 8, !tbaa !5
  %.idx.us = shl i64 %49, 3
  %50 = getelementptr i8, ptr %6, i64 %.idx.us
  %51 = call i32 @slatrs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %14, ptr noundef %50, ptr noundef nonnull %8) #4
  store i8 89, ptr %17, align 1, !tbaa !11
  %52 = load i64, ptr %1, align 8, !tbaa !5
  %.idx81.us = shl i64 %52, 3
  %53 = getelementptr i8, ptr %6, i64 %.idx81.us
  %54 = call i32 @slatrs_(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %15, ptr noundef %53, ptr noundef nonnull %8) #4
  %55 = load float, ptr %14, align 4, !tbaa !9
  %56 = load float, ptr %15, align 4, !tbaa !9
  %57 = fmul float %55, %56
  store float %57, ptr %12, align 4, !tbaa !9
  %58 = fcmp une float %57, 1.000000e+00
  br i1 %58, label %59, label %74

59:                                               ; preds = %.lr.ph.split.us
  %60 = call i64 @f2c_isamax(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %61 = load float, ptr %12, align 4
  %62 = fpext float %61 to double
  %63 = getelementptr inbounds float, ptr %18, i64 %60
  %64 = load float, ptr %63, align 4, !tbaa !9
  %65 = fcmp oge float %64, 0.000000e+00
  %66 = fneg float %64
  %67 = select i1 %65, float %64, float %66
  %68 = fpext float %67 to double
  %69 = fmul double %48, %68
  %70 = fcmp ogt double %69, %62
  %71 = fcmp oeq float %61, 0.000000e+00
  %or.cond.us = or i1 %71, %70
  br i1 %or.cond.us, label %.loopexit, label %72

72:                                               ; preds = %59
  %73 = call i32 @srscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %74

74:                                               ; preds = %72, %.lr.ph.split.us
  %75 = load i64, ptr %1, align 8, !tbaa !5
  %76 = getelementptr float, ptr %6, i64 %75
  %77 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %76, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %78 = load i64, ptr %11, align 8, !tbaa !5
  %.not80.us = icmp eq i64 %78, 0
  br i1 %.not80.us, label %._crit_edge, label %.lr.ph.split.us

.lr.ph.split:                                     ; preds = %.lr.ph, %104
  %79 = load i64, ptr %1, align 8, !tbaa !5
  %.idx82 = shl i64 %79, 3
  %80 = getelementptr i8, ptr %6, i64 %.idx82
  %81 = call i32 @slatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %14, ptr noundef %80, ptr noundef nonnull %8) #4
  store i8 89, ptr %17, align 1, !tbaa !11
  %82 = load i64, ptr %1, align 8, !tbaa !5
  %.idx83 = shl i64 %82, 3
  %83 = getelementptr i8, ptr %6, i64 %.idx83
  %84 = call i32 @slatrs_(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.6, ptr noundef nonnull %17, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef %6, ptr noundef nonnull %15, ptr noundef %83, ptr noundef nonnull %8) #4
  %85 = load float, ptr %14, align 4, !tbaa !9
  %86 = load float, ptr %15, align 4, !tbaa !9
  %87 = fmul float %85, %86
  store float %87, ptr %12, align 4, !tbaa !9
  %88 = fcmp une float %87, 1.000000e+00
  br i1 %88, label %89, label %104

89:                                               ; preds = %.lr.ph.split
  %90 = call i64 @f2c_isamax(ptr noundef nonnull %1, ptr noundef %6, ptr noundef nonnull @c__1) #4
  %91 = load float, ptr %12, align 4
  %92 = fpext float %91 to double
  %93 = getelementptr inbounds float, ptr %18, i64 %90
  %94 = load float, ptr %93, align 4, !tbaa !9
  %95 = fcmp oge float %94, 0.000000e+00
  %96 = fneg float %94
  %97 = select i1 %95, float %94, float %96
  %98 = fpext float %97 to double
  %99 = fmul double %48, %98
  %100 = fcmp ogt double %99, %92
  %101 = fcmp oeq float %91, 0.000000e+00
  %or.cond = or i1 %101, %100
  br i1 %or.cond, label %.loopexit, label %102

102:                                              ; preds = %89
  %103 = call i32 @srscl_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull %6, ptr noundef nonnull @c__1) #4
  br label %104

104:                                              ; preds = %102, %.lr.ph.split
  %105 = load i64, ptr %1, align 8, !tbaa !5
  %106 = getelementptr float, ptr %6, i64 %105
  %107 = call i32 @slacn2_(ptr noundef nonnull %1, ptr noundef %106, ptr noundef %6, ptr noundef %7, ptr noundef nonnull %16, ptr noundef nonnull %11, ptr noundef nonnull %13) #4
  %108 = load i64, ptr %11, align 8, !tbaa !5
  %.not80 = icmp eq i64 %108, 0
  br i1 %.not80, label %._crit_edge, label %.lr.ph.split

._crit_edge:                                      ; preds = %104, %74, %41
  %109 = load float, ptr %16, align 4, !tbaa !9
  %110 = fcmp une float %109, 0.000000e+00
  br i1 %110, label %111, label %.loopexit

111:                                              ; preds = %._crit_edge
  %112 = fdiv float 1.000000e+00, %109
  %113 = load float, ptr %4, align 4, !tbaa !9
  %114 = fdiv float %112, %113
  store float %114, ptr %5, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %89, %59, %111, %._crit_edge, %38, %37, %.thread
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #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 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 i32 @slacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.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 }

!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 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass