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

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

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

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

63:                                               ; preds = %59, %10
  %64 = phi i1 [ true, %10 ], [ %62, %59 ]
  %65 = zext i1 %64 to i32
  %66 = sext i32 %65 to i64
  store i64 %66, ptr %35, align 8, !tbaa !9
  %67 = load ptr, ptr %14, align 8, !tbaa !5
  %68 = call i64 @lsame_(ptr noundef %67, ptr noundef @.str.2)
  store i64 %68, ptr %38, align 8, !tbaa !9
  %69 = load i64, ptr %35, align 8, !tbaa !9
  %70 = icmp ne i64 %69, 0
  br i1 %70, label %77, label %71

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

75:                                               ; preds = %71
  %76 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -1, ptr %76, align 8, !tbaa !9
  br label %120

77:                                               ; preds = %71, %63
  %78 = load i64, ptr %32, align 8, !tbaa !9
  %79 = icmp ne i64 %78, 0
  br i1 %79, label %86, label %80

80:                                               ; preds = %77
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = call i64 @lsame_(ptr noundef %81, ptr noundef @.str.4)
  %83 = icmp ne i64 %82, 0
  br i1 %83, label %86, label %84

84:                                               ; preds = %80
  %85 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -2, ptr %85, align 8, !tbaa !9
  br label %119

86:                                               ; preds = %80, %77
  %87 = load i64, ptr %38, align 8, !tbaa !9
  %88 = icmp ne i64 %87, 0
  br i1 %88, label %95, label %89

89:                                               ; preds = %86
  %90 = load ptr, ptr %14, align 8, !tbaa !5
  %91 = call i64 @lsame_(ptr noundef %90, ptr noundef @.str)
  %92 = icmp ne i64 %91, 0
  br i1 %92, label %95, label %93

93:                                               ; preds = %89
  %94 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -3, ptr %94, align 8, !tbaa !9
  br label %118

95:                                               ; preds = %89, %86
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = icmp slt i64 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %95
  %100 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -4, ptr %100, align 8, !tbaa !9
  br label %117

101:                                              ; preds = %95
  %102 = load ptr, ptr %17, align 8, !tbaa !5
  %103 = load i64, ptr %102, align 8, !tbaa !9
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = icmp sge i64 1, %105
  br i1 %106, label %107, label %108

107:                                              ; preds = %101
  br label %111

108:                                              ; preds = %101
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = load i64, ptr %109, align 8, !tbaa !9
  br label %111

111:                                              ; preds = %108, %107
  %112 = phi i64 [ 1, %107 ], [ %110, %108 ]
  %113 = icmp slt i64 %103, %112
  br i1 %113, label %114, label %116

114:                                              ; preds = %111
  %115 = load ptr, ptr %21, align 8, !tbaa !5
  store i64 -6, ptr %115, align 8, !tbaa !9
  br label %116

116:                                              ; preds = %114, %111
  br label %117

117:                                              ; preds = %116, %99
  br label %118

118:                                              ; preds = %117, %93
  br label %119

119:                                              ; preds = %118, %84
  br label %120

120:                                              ; preds = %119, %75
  %121 = load ptr, ptr %21, align 8, !tbaa !5
  %122 = load i64, ptr %121, align 8, !tbaa !9
  %123 = icmp ne i64 %122, 0
  br i1 %123, label %124, label %129

124:                                              ; preds = %120
  %125 = load ptr, ptr %21, align 8, !tbaa !5
  %126 = load i64, ptr %125, align 8, !tbaa !9
  %127 = sub nsw i64 0, %126
  store i64 %127, ptr %24, align 8, !tbaa !9
  %128 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %24)
  store i32 0, ptr %11, align 4
  store i32 1, ptr %39, align 4
  br label %281

129:                                              ; preds = %120
  %130 = load ptr, ptr %15, align 8, !tbaa !5
  %131 = load i64, ptr %130, align 8, !tbaa !9
  %132 = icmp eq i64 %131, 0
  br i1 %132, label %133, label %135

133:                                              ; preds = %129
  %134 = load ptr, ptr %18, align 8, !tbaa !5
  store float 1.000000e+00, ptr %134, align 4, !tbaa !12
  store i32 0, ptr %11, align 4
  store i32 1, ptr %39, align 4
  br label %281

135:                                              ; preds = %129
  %136 = load ptr, ptr %18, align 8, !tbaa !5
  store float 0.000000e+00, ptr %136, align 4, !tbaa !12
  %137 = call double @slamch_(ptr noundef @.str.6)
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load i64, ptr %138, align 8, !tbaa !9
  %140 = icmp sge i64 1, %139
  br i1 %140, label %141, label %142

141:                                              ; preds = %135
  br label %145

142:                                              ; preds = %135
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = load i64, ptr %143, align 8, !tbaa !9
  br label %145

145:                                              ; preds = %142, %141
  %146 = phi i64 [ 1, %141 ], [ %144, %142 ]
  %147 = sitofp i64 %146 to float
  %148 = fpext float %147 to double
  %149 = fmul double %137, %148
  %150 = fptrunc double %149 to float
  store float %150, ptr %37, align 4, !tbaa !12
  %151 = load ptr, ptr %12, align 8, !tbaa !5
  %152 = load ptr, ptr %13, align 8, !tbaa !5
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = load i64, ptr %23, align 8, !tbaa !9
  %158 = getelementptr inbounds float, ptr %156, i64 %157
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  %161 = getelementptr inbounds float, ptr %160, i64 1
  %162 = call double @slantr_(ptr noundef %151, ptr noundef %152, ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %158, ptr noundef %159, ptr noundef %161)
  %163 = fptrunc double %162 to float
  store float %163, ptr %31, align 4, !tbaa !12
  %164 = load float, ptr %31, align 4, !tbaa !12
  %165 = fcmp ogt float %164, 0.000000e+00
  br i1 %165, label %166, label %279

166:                                              ; preds = %145
  store float 0.000000e+00, ptr %34, align 4, !tbaa !12
  %167 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  store i8 78, ptr %167, align 1, !tbaa !11
  %168 = load i64, ptr %35, align 8, !tbaa !9
  %169 = icmp ne i64 %168, 0
  br i1 %169, label %170, label %171

170:                                              ; preds = %166
  store i64 1, ptr %28, align 8, !tbaa !9
  br label %172

171:                                              ; preds = %166
  store i64 2, ptr %28, align 8, !tbaa !9
  br label %172

172:                                              ; preds = %171, %170
  store i64 0, ptr %27, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %268, %172
  %174 = load ptr, ptr %15, align 8, !tbaa !5
  %175 = load ptr, ptr %19, align 8, !tbaa !5
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = load i64, ptr %176, align 8, !tbaa !9
  %178 = add nsw i64 %177, 1
  %179 = getelementptr inbounds float, ptr %175, i64 %178
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = getelementptr inbounds float, ptr %180, i64 1
  %182 = load ptr, ptr %20, align 8, !tbaa !5
  %183 = getelementptr inbounds i64, ptr %182, i64 1
  %184 = getelementptr inbounds [3 x i64], ptr %30, i64 0, i64 0
  %185 = call i32 @slacn2_(ptr noundef %174, ptr noundef %179, ptr noundef %181, ptr noundef %183, ptr noundef %34, ptr noundef %27, ptr noundef %184)
  %186 = load i64, ptr %27, align 8, !tbaa !9
  %187 = icmp ne i64 %186, 0
  br i1 %187, label %188, label %269

188:                                              ; preds = %173
  %189 = load i64, ptr %27, align 8, !tbaa !9
  %190 = load i64, ptr %28, align 8, !tbaa !9
  %191 = icmp eq i64 %189, %190
  br i1 %191, label %192, label %211

192:                                              ; preds = %188
  %193 = load ptr, ptr %13, align 8, !tbaa !5
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  %196 = load ptr, ptr %15, align 8, !tbaa !5
  %197 = load ptr, ptr %16, align 8, !tbaa !5
  %198 = load i64, ptr %23, align 8, !tbaa !9
  %199 = getelementptr inbounds float, ptr %197, i64 %198
  %200 = load ptr, ptr %17, align 8, !tbaa !5
  %201 = load ptr, ptr %19, align 8, !tbaa !5
  %202 = getelementptr inbounds float, ptr %201, i64 1
  %203 = load ptr, ptr %19, align 8, !tbaa !5
  %204 = load ptr, ptr %15, align 8, !tbaa !5
  %205 = load i64, ptr %204, align 8, !tbaa !9
  %206 = shl i64 %205, 1
  %207 = add nsw i64 %206, 1
  %208 = getelementptr inbounds float, ptr %203, i64 %207
  %209 = load ptr, ptr %21, align 8, !tbaa !5
  %210 = call i32 @slatrs_(ptr noundef %193, ptr noundef @.str.7, ptr noundef %194, ptr noundef %195, ptr noundef %196, ptr noundef %199, ptr noundef %200, ptr noundef %202, ptr noundef %29, ptr noundef %208, ptr noundef %209)
  br label %230

211:                                              ; preds = %188
  %212 = load ptr, ptr %13, align 8, !tbaa !5
  %213 = load ptr, ptr %14, align 8, !tbaa !5
  %214 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  %215 = load ptr, ptr %15, align 8, !tbaa !5
  %216 = load ptr, ptr %16, align 8, !tbaa !5
  %217 = load i64, ptr %23, align 8, !tbaa !9
  %218 = getelementptr inbounds float, ptr %216, i64 %217
  %219 = load ptr, ptr %17, align 8, !tbaa !5
  %220 = load ptr, ptr %19, align 8, !tbaa !5
  %221 = getelementptr inbounds float, ptr %220, i64 1
  %222 = load ptr, ptr %19, align 8, !tbaa !5
  %223 = load ptr, ptr %15, align 8, !tbaa !5
  %224 = load i64, ptr %223, align 8, !tbaa !9
  %225 = shl i64 %224, 1
  %226 = add nsw i64 %225, 1
  %227 = getelementptr inbounds float, ptr %222, i64 %226
  %228 = load ptr, ptr %21, align 8, !tbaa !5
  %229 = call i32 @slatrs_(ptr noundef %212, ptr noundef @.str.8, ptr noundef %213, ptr noundef %214, ptr noundef %215, ptr noundef %218, ptr noundef %219, ptr noundef %221, ptr noundef %29, ptr noundef %227, ptr noundef %228)
  br label %230

230:                                              ; preds = %211, %192
  %231 = getelementptr inbounds [1 x i8], ptr %36, i64 0, i64 0
  store i8 89, ptr %231, align 1, !tbaa !11
  %232 = load float, ptr %29, align 4, !tbaa !12
  %233 = fcmp une float %232, 1.000000e+00
  br i1 %233, label %234, label %268

234:                                              ; preds = %230
  %235 = load ptr, ptr %15, align 8, !tbaa !5
  %236 = load ptr, ptr %19, align 8, !tbaa !5
  %237 = getelementptr inbounds float, ptr %236, i64 1
  %238 = call i64 @f2c_isamax(ptr noundef %235, ptr noundef %237, ptr noundef @c__1)
  store i64 %238, ptr %26, align 8, !tbaa !9
  %239 = load ptr, ptr %19, align 8, !tbaa !5
  %240 = load i64, ptr %26, align 8, !tbaa !9
  %241 = getelementptr inbounds float, ptr %239, i64 %240
  %242 = load float, ptr %241, align 4, !tbaa !12
  store float %242, ptr %25, align 4, !tbaa !12
  %243 = load float, ptr %25, align 4, !tbaa !12
  %244 = fcmp oge float %243, 0.000000e+00
  br i1 %244, label %245, label %247

245:                                              ; preds = %234
  %246 = load float, ptr %25, align 4, !tbaa !12
  br label %250

247:                                              ; preds = %234
  %248 = load float, ptr %25, align 4, !tbaa !12
  %249 = fneg float %248
  br label %250

250:                                              ; preds = %247, %245
  %251 = phi float [ %246, %245 ], [ %249, %247 ]
  %252 = fpext float %251 to double
  %253 = fptrunc double %252 to float
  store float %253, ptr %33, align 4, !tbaa !12
  %254 = load float, ptr %29, align 4, !tbaa !12
  %255 = load float, ptr %33, align 4, !tbaa !12
  %256 = load float, ptr %37, align 4, !tbaa !12
  %257 = fmul float %255, %256
  %258 = fcmp olt float %254, %257
  br i1 %258, label %262, label %259

259:                                              ; preds = %250
  %260 = load float, ptr %29, align 4, !tbaa !12
  %261 = fcmp oeq float %260, 0.000000e+00
  br i1 %261, label %262, label %263

262:                                              ; preds = %259, %250
  br label %280

263:                                              ; preds = %259
  %264 = load ptr, ptr %15, align 8, !tbaa !5
  %265 = load ptr, ptr %19, align 8, !tbaa !5
  %266 = getelementptr inbounds float, ptr %265, i64 1
  %267 = call i32 @srscl_(ptr noundef %264, ptr noundef %29, ptr noundef %266, ptr noundef @c__1)
  br label %268

268:                                              ; preds = %263, %230
  br label %173

269:                                              ; preds = %173
  %270 = load float, ptr %34, align 4, !tbaa !12
  %271 = fcmp une float %270, 0.000000e+00
  br i1 %271, label %272, label %278

272:                                              ; preds = %269
  %273 = load float, ptr %31, align 4, !tbaa !12
  %274 = fdiv float 1.000000e+00, %273
  %275 = load float, ptr %34, align 4, !tbaa !12
  %276 = fdiv float %274, %275
  %277 = load ptr, ptr %18, align 8, !tbaa !5
  store float %276, ptr %277, align 4, !tbaa !12
  br label %278

278:                                              ; preds = %272, %269
  br label %279

279:                                              ; preds = %278, %145
  br label %280

280:                                              ; preds = %279, %262
  store i32 0, ptr %11, align 4
  store i32 1, ptr %39, align 4
  br label %281

281:                                              ; preds = %280, %133, %124
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 24, 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 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %282 = load i32, ptr %11, align 4
  ret i32 %282
}

; 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 double @slantr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"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 [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [10 x i8], align 1
@c__1 = external hidden global i64, align 8

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

.thread:                                          ; preds = %10
  %21 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #4
  br label %27

22:                                               ; preds = %10
  %23 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #4
  %.not100 = icmp eq i64 %23, 0
  %24 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #4
  br i1 %.not100, label %25, label %27

25:                                               ; preds = %22
  %26 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.3) #4
  %.not = icmp eq i64 %26, 0
  br i1 %.not, label %.thread98.sink.split, label %27

27:                                               ; preds = %.thread, %25, %22
  %28 = phi i64 [ %21, %.thread ], [ %24, %25 ], [ %24, %22 ]
  %. = phi i64 [ 1, %.thread ], [ 2, %25 ], [ 1, %22 ]
  %.not90 = icmp eq i64 %18, 0
  br i1 %.not90, label %29, label %31

29:                                               ; preds = %27
  %30 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #4
  %.not91 = icmp eq i64 %30, 0
  br i1 %.not91, label %.thread98.sink.split, label %31

31:                                               ; preds = %29, %27
  %.not92 = icmp eq i64 %28, 0
  br i1 %.not92, label %32, label %34

32:                                               ; preds = %31
  %33 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #4
  %.not93 = icmp eq i64 %33, 0
  br i1 %.not93, label %.thread98.sink.split, label %34

34:                                               ; preds = %32, %31
  %35 = load i64, ptr %3, align 8, !tbaa !5
  %36 = icmp slt i64 %35, 0
  br i1 %36, label %.thread98.sink.split, label %37

37:                                               ; preds = %34
  %38 = load i64, ptr %5, align 8, !tbaa !5
  %spec.select = tail call i64 @llvm.umax.i64(i64 %35, i64 1)
  %39 = icmp slt i64 %38, %spec.select
  br i1 %39, label %.thread98.sink.split, label %40

40:                                               ; preds = %37
  %.pr = load i64, ptr %9, align 8, !tbaa !5
  %.not94 = icmp eq i64 %.pr, 0
  br i1 %.not94, label %44, label %.thread98

.thread98.sink.split:                             ; preds = %37, %34, %32, %29, %25
  %.sink = phi i64 [ -1, %25 ], [ -2, %29 ], [ -3, %32 ], [ -4, %34 ], [ -6, %37 ]
  store i64 %.sink, ptr %9, align 8, !tbaa !5
  br label %.thread98

.thread98:                                        ; preds = %.thread98.sink.split, %40
  %41 = phi i64 [ %.pr, %40 ], [ %.sink, %.thread98.sink.split ]
  %42 = sub nsw i64 0, %41
  store i64 %42, ptr %11, align 8, !tbaa !5
  %43 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %11) #4
  br label %.loopexit

44:                                               ; preds = %40
  %45 = icmp eq i64 %35, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %44
  store float 1.000000e+00, ptr %6, align 4, !tbaa !10
  br label %.loopexit

47:                                               ; preds = %44
  store float 0.000000e+00, ptr %6, align 4, !tbaa !10
  %48 = tail call double @slamch_(ptr noundef nonnull @.str.6) #4
  %49 = load i64, ptr %3, align 8, !tbaa !5
  %50 = icmp slt i64 %49, 2
  %51 = uitofp nneg i64 %49 to float
  %52 = fpext float %51 to double
  %53 = select i1 %50, double 1.000000e+00, double %52
  %54 = fmul double %48, %53
  %55 = fptrunc double %54 to float
  %56 = tail call double @slantr_(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %7) #4
  %57 = fptrunc double %56 to float
  %58 = fcmp ogt float %57, 0.000000e+00
  br i1 %58, label %59, label %.loopexit

59:                                               ; preds = %47
  store float 0.000000e+00, ptr %15, align 4, !tbaa !10
  store i8 78, ptr %16, align 1, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !5
  %60 = load i64, ptr %3, align 8, !tbaa !5
  %61 = getelementptr float, ptr %7, i64 %60
  %62 = call i32 @slacn2_(ptr noundef nonnull %3, ptr noundef %61, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %15, ptr noundef nonnull %12, ptr noundef nonnull %14) #4
  %63 = load i64, ptr %12, align 8, !tbaa !5
  %.not95101 = icmp eq i64 %63, 0
  br i1 %.not95101, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %59, %84
  %64 = phi i64 [ %88, %84 ], [ %63, %59 ]
  %65 = icmp eq i64 %64, %.
  %66 = load i64, ptr %3, align 8, !tbaa !5
  %.idx96 = shl i64 %66, 3
  %67 = getelementptr i8, ptr %7, i64 %.idx96
  %.str.7..str.8 = select i1 %65, ptr @.str.7, ptr @.str.8
  %68 = call i32 @slatrs_(ptr noundef %1, ptr noundef nonnull %.str.7..str.8, ptr noundef %2, ptr noundef nonnull %16, ptr noundef nonnull %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %7, ptr noundef nonnull %13, ptr noundef %67, ptr noundef nonnull %9) #4
  store i8 89, ptr %16, align 1, !tbaa !9
  %69 = load float, ptr %13, align 4, !tbaa !10
  %70 = fcmp une float %69, 1.000000e+00
  br i1 %70, label %71, label %84

71:                                               ; preds = %.lr.ph
  %72 = call i64 @f2c_isamax(ptr noundef nonnull %3, ptr noundef %7, ptr noundef nonnull @c__1) #4
  %73 = getelementptr inbounds float, ptr %17, i64 %72
  %74 = load float, ptr %73, align 4, !tbaa !10
  %75 = fcmp oge float %74, 0.000000e+00
  %76 = fneg float %74
  %77 = select i1 %75, float %74, float %76
  %78 = load float, ptr %13, align 4
  %79 = fmul float %77, %55
  %80 = fcmp olt float %78, %79
  %81 = fcmp oeq float %78, 0.000000e+00
  %or.cond = or i1 %81, %80
  br i1 %or.cond, label %.loopexit, label %82

82:                                               ; preds = %71
  %83 = call i32 @srscl_(ptr noundef nonnull %3, ptr noundef nonnull %13, ptr noundef nonnull %7, ptr noundef nonnull @c__1) #4
  br label %84

84:                                               ; preds = %82, %.lr.ph
  %85 = load i64, ptr %3, align 8, !tbaa !5
  %86 = getelementptr float, ptr %7, i64 %85
  %87 = call i32 @slacn2_(ptr noundef nonnull %3, ptr noundef %86, ptr noundef %7, ptr noundef %8, ptr noundef nonnull %15, ptr noundef nonnull %12, ptr noundef nonnull %14) #4
  %88 = load i64, ptr %12, align 8, !tbaa !5
  %.not95 = icmp eq i64 %88, 0
  br i1 %.not95, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %84, %59
  %89 = load float, ptr %15, align 4, !tbaa !10
  %90 = fcmp une float %89, 0.000000e+00
  br i1 %90, label %91, label %.loopexit

91:                                               ; preds = %._crit_edge
  %92 = fdiv float 1.000000e+00, %57
  %93 = fdiv float %92, %89
  store float %93, ptr %6, align 4, !tbaa !10
  br label %.loopexit

.loopexit:                                        ; preds = %71, %._crit_edge, %91, %47, %46, %.thread98
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #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 double @slantr_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, 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 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !7, i64 0}


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