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

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

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

65:                                               ; preds = %61, %11
  %66 = phi i1 [ true, %11 ], [ %64, %61 ]
  %67 = zext i1 %66 to i32
  %68 = sext i32 %67 to i64
  store i64 %68, ptr %37, align 8, !tbaa !9
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = call i64 @lsame_(ptr noundef %69, ptr noundef @.str.2)
  store i64 %70, ptr %40, align 8, !tbaa !9
  %71 = load i64, ptr %37, align 8, !tbaa !9
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %79, label %73

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

77:                                               ; preds = %73
  %78 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -1, ptr %78, align 8, !tbaa !9
  br label %123

79:                                               ; preds = %73, %65
  %80 = load i64, ptr %34, align 8, !tbaa !9
  %81 = icmp ne i64 %80, 0
  br i1 %81, label %88, label %82

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

86:                                               ; preds = %82
  %87 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -2, ptr %87, align 8, !tbaa !9
  br label %122

88:                                               ; preds = %82, %79
  %89 = load i64, ptr %40, align 8, !tbaa !9
  %90 = icmp ne i64 %89, 0
  br i1 %90, label %97, label %91

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

95:                                               ; preds = %91
  %96 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -3, ptr %96, align 8, !tbaa !9
  br label %121

97:                                               ; preds = %91, %88
  %98 = load ptr, ptr %16, align 8, !tbaa !5
  %99 = load i64, ptr %98, align 8, !tbaa !9
  %100 = icmp slt i64 %99, 0
  br i1 %100, label %101, label %103

101:                                              ; preds = %97
  %102 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -4, ptr %102, align 8, !tbaa !9
  br label %120

103:                                              ; preds = %97
  %104 = load ptr, ptr %17, align 8, !tbaa !5
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = icmp slt i64 %105, 0
  br i1 %106, label %107, label %109

107:                                              ; preds = %103
  %108 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -5, ptr %108, align 8, !tbaa !9
  br label %119

109:                                              ; preds = %103
  %110 = load ptr, ptr %19, align 8, !tbaa !5
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = load ptr, ptr %17, align 8, !tbaa !5
  %113 = load i64, ptr %112, align 8, !tbaa !9
  %114 = add nsw i64 %113, 1
  %115 = icmp slt i64 %111, %114
  br i1 %115, label %116, label %118

116:                                              ; preds = %109
  %117 = load ptr, ptr %23, align 8, !tbaa !5
  store i64 -7, ptr %117, align 8, !tbaa !9
  br label %118

118:                                              ; preds = %116, %109
  br label %119

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

120:                                              ; preds = %119, %101
  br label %121

121:                                              ; preds = %120, %95
  br label %122

122:                                              ; preds = %121, %86
  br label %123

123:                                              ; preds = %122, %77
  %124 = load ptr, ptr %23, align 8, !tbaa !5
  %125 = load i64, ptr %124, align 8, !tbaa !9
  %126 = icmp ne i64 %125, 0
  br i1 %126, label %127, label %132

127:                                              ; preds = %123
  %128 = load ptr, ptr %23, align 8, !tbaa !5
  %129 = load i64, ptr %128, align 8, !tbaa !9
  %130 = sub nsw i64 0, %129
  store i64 %130, ptr %26, align 8, !tbaa !9
  %131 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %26)
  store i32 0, ptr %12, align 4
  store i32 1, ptr %41, align 4
  br label %281

132:                                              ; preds = %123
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = load i64, ptr %133, align 8, !tbaa !9
  %135 = icmp eq i64 %134, 0
  br i1 %135, label %136, label %138

136:                                              ; preds = %132
  %137 = load ptr, ptr %20, align 8, !tbaa !5
  store double 1.000000e+00, ptr %137, align 8, !tbaa !12
  store i32 0, ptr %12, align 4
  store i32 1, ptr %41, align 4
  br label %281

138:                                              ; preds = %132
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  store double 0.000000e+00, ptr %139, align 8, !tbaa !12
  %140 = call double @dlamch_(ptr noundef @.str.6)
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = load i64, ptr %141, align 8, !tbaa !9
  %143 = icmp sge i64 1, %142
  br i1 %143, label %144, label %145

144:                                              ; preds = %138
  br label %148

145:                                              ; preds = %138
  %146 = load ptr, ptr %16, align 8, !tbaa !5
  %147 = load i64, ptr %146, align 8, !tbaa !9
  br label %148

148:                                              ; preds = %145, %144
  %149 = phi i64 [ 1, %144 ], [ %147, %145 ]
  %150 = sitofp i64 %149 to double
  %151 = fmul double %140, %150
  store double %151, ptr %39, align 8, !tbaa !12
  %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 %16, align 8, !tbaa !5
  %156 = load ptr, ptr %17, align 8, !tbaa !5
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  %158 = load i64, ptr %25, align 8, !tbaa !9
  %159 = getelementptr inbounds double, ptr %157, i64 %158
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  %161 = load ptr, ptr %21, align 8, !tbaa !5
  %162 = getelementptr inbounds double, ptr %161, i64 1
  %163 = call double @dlantb_(ptr noundef %152, ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %159, ptr noundef %160, ptr noundef %162)
  store double %163, ptr %33, align 8, !tbaa !12
  %164 = load double, ptr %33, align 8, !tbaa !12
  %165 = fcmp ogt double %164, 0.000000e+00
  br i1 %165, label %166, label %279

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

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

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

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

173:                                              ; preds = %268, %172
  %174 = load ptr, ptr %16, align 8, !tbaa !5
  %175 = load ptr, ptr %21, align 8, !tbaa !5
  %176 = load ptr, ptr %16, align 8, !tbaa !5
  %177 = load i64, ptr %176, align 8, !tbaa !9
  %178 = add nsw i64 %177, 1
  %179 = getelementptr inbounds double, ptr %175, i64 %178
  %180 = load ptr, ptr %21, align 8, !tbaa !5
  %181 = getelementptr inbounds double, ptr %180, i64 1
  %182 = load ptr, ptr %22, align 8, !tbaa !5
  %183 = getelementptr inbounds i64, ptr %182, i64 1
  %184 = getelementptr inbounds [3 x i64], ptr %32, i64 0, i64 0
  %185 = call i32 @dlacn2_(ptr noundef %174, ptr noundef %179, ptr noundef %181, ptr noundef %183, ptr noundef %36, ptr noundef %29, ptr noundef %184)
  %186 = load i64, ptr %29, align 8, !tbaa !9
  %187 = icmp ne i64 %186, 0
  br i1 %187, label %188, label %269

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

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

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

232:                                              ; preds = %212, %192
  %233 = getelementptr inbounds [1 x i8], ptr %38, i64 0, i64 0
  store i8 89, ptr %233, align 1, !tbaa !11
  %234 = load double, ptr %31, align 8, !tbaa !12
  %235 = fcmp une double %234, 1.000000e+00
  br i1 %235, label %236, label %268

236:                                              ; preds = %232
  %237 = load ptr, ptr %16, align 8, !tbaa !5
  %238 = load ptr, ptr %21, align 8, !tbaa !5
  %239 = getelementptr inbounds double, ptr %238, i64 1
  %240 = call i64 @f2c_idamax(ptr noundef %237, ptr noundef %239, ptr noundef @c__1)
  store i64 %240, ptr %28, align 8, !tbaa !9
  %241 = load ptr, ptr %21, align 8, !tbaa !5
  %242 = load i64, ptr %28, align 8, !tbaa !9
  %243 = getelementptr inbounds double, ptr %241, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !12
  store double %244, ptr %27, align 8, !tbaa !12
  %245 = load double, ptr %27, align 8, !tbaa !12
  %246 = fcmp oge double %245, 0.000000e+00
  br i1 %246, label %247, label %249

247:                                              ; preds = %236
  %248 = load double, ptr %27, align 8, !tbaa !12
  br label %252

249:                                              ; preds = %236
  %250 = load double, ptr %27, align 8, !tbaa !12
  %251 = fneg double %250
  br label %252

252:                                              ; preds = %249, %247
  %253 = phi double [ %248, %247 ], [ %251, %249 ]
  store double %253, ptr %35, align 8, !tbaa !12
  %254 = load double, ptr %31, align 8, !tbaa !12
  %255 = load double, ptr %35, align 8, !tbaa !12
  %256 = load double, ptr %39, align 8, !tbaa !12
  %257 = fmul double %255, %256
  %258 = fcmp olt double %254, %257
  br i1 %258, label %262, label %259

259:                                              ; preds = %252
  %260 = load double, ptr %31, align 8, !tbaa !12
  %261 = fcmp oeq double %260, 0.000000e+00
  br i1 %261, label %262, label %263

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

263:                                              ; preds = %259
  %264 = load ptr, ptr %16, align 8, !tbaa !5
  %265 = load ptr, ptr %21, align 8, !tbaa !5
  %266 = getelementptr inbounds double, ptr %265, i64 1
  %267 = call i32 @drscl_(ptr noundef %264, ptr noundef %31, ptr noundef %266, ptr noundef @c__1)
  br label %268

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

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

272:                                              ; preds = %269
  %273 = load double, ptr %33, align 8, !tbaa !12
  %274 = fdiv double 1.000000e+00, %273
  %275 = load double, ptr %36, align 8, !tbaa !12
  %276 = fdiv double %274, %275
  %277 = load ptr, ptr %20, align 8, !tbaa !5
  store double %276, ptr %277, align 8, !tbaa !12
  br label %278

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

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

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

281:                                              ; preds = %280, %136, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, 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 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  %282 = load i32, ptr %12, 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 @dlamch_(ptr noundef) #2

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

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

declare i32 @dlatbs_(ptr noundef, 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_idamax(ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @drscl_(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 = !{!"double", !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 @dtbcon_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr nocapture noundef writeonly %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) local_unnamed_addr #0 {
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca double, align 8
  %15 = alloca [3 x i64], align 16
  %16 = alloca double, align 8
  %17 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #3
  %18 = getelementptr inbounds i8, ptr %8, i64 -8
  store i64 0, ptr %10, align 8, !tbaa !5
  %19 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str) #3
  %20 = load i8, ptr %0, align 1, !tbaa !9
  %21 = icmp eq i8 %20, 49
  br i1 %21, label %.thread, label %23

.thread:                                          ; preds = %11
  %22 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br label %28

23:                                               ; preds = %11
  %24 = tail call i64 @lsame_(ptr noundef nonnull %0, ptr noundef nonnull @.str.1) #3
  %.not104 = icmp eq i64 %24, 0
  %25 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br i1 %.not104, label %26, label %28

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

28:                                               ; preds = %.thread, %26, %23
  %29 = phi i64 [ %22, %.thread ], [ %25, %26 ], [ %25, %23 ]
  %. = phi i64 [ 1, %.thread ], [ 2, %26 ], [ 1, %23 ]
  %.not93 = icmp eq i64 %19, 0
  br i1 %.not93, label %30, label %32

30:                                               ; preds = %28
  %31 = tail call i64 @lsame_(ptr noundef %1, ptr noundef nonnull @.str.4) #3
  %.not94 = icmp eq i64 %31, 0
  br i1 %.not94, label %.thread102.sink.split, label %32

32:                                               ; preds = %30, %28
  %.not95 = icmp eq i64 %29, 0
  br i1 %.not95, label %33, label %35

33:                                               ; preds = %32
  %34 = tail call i64 @lsame_(ptr noundef %2, ptr noundef nonnull @.str) #3
  %.not96 = icmp eq i64 %34, 0
  br i1 %.not96, label %.thread102.sink.split, label %35

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

38:                                               ; preds = %35
  %39 = load i64, ptr %4, align 8, !tbaa !5
  %40 = icmp slt i64 %39, 0
  br i1 %40, label %.thread102.sink.split, label %41

41:                                               ; preds = %38
  %42 = load i64, ptr %6, align 8, !tbaa !5
  %.not97 = icmp sgt i64 %42, %39
  br i1 %.not97, label %43, label %.thread102.sink.split

43:                                               ; preds = %41
  %.pr = load i64, ptr %10, align 8, !tbaa !5
  %.not98 = icmp eq i64 %.pr, 0
  br i1 %.not98, label %47, label %.thread102

.thread102.sink.split:                            ; preds = %41, %38, %35, %33, %30, %26
  %.sink = phi i64 [ -1, %26 ], [ -2, %30 ], [ -3, %33 ], [ -4, %35 ], [ -5, %38 ], [ -7, %41 ]
  store i64 %.sink, ptr %10, align 8, !tbaa !5
  br label %.thread102

.thread102:                                       ; preds = %.thread102.sink.split, %43
  %44 = phi i64 [ %.pr, %43 ], [ %.sink, %.thread102.sink.split ]
  %45 = sub nsw i64 0, %44
  store i64 %45, ptr %12, align 8, !tbaa !5
  %46 = call i32 @xerbla_(ptr noundef nonnull @.str.5, ptr noundef nonnull %12) #3
  br label %.loopexit

47:                                               ; preds = %43
  %48 = icmp eq i64 %36, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %47
  store double 1.000000e+00, ptr %7, align 8, !tbaa !10
  br label %.loopexit

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

59:                                               ; preds = %50
  store double 0.000000e+00, ptr %16, align 8, !tbaa !10
  store i8 78, ptr %17, align 1, !tbaa !9
  store i64 0, ptr %13, align 8, !tbaa !5
  %60 = load i64, ptr %3, align 8, !tbaa !5
  %61 = getelementptr double, ptr %8, i64 %60
  %62 = call i32 @dlacn2_(ptr noundef nonnull %3, ptr noundef %61, ptr noundef %8, ptr noundef %9, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #3
  %63 = load i64, ptr %13, align 8, !tbaa !5
  %.not99105 = icmp eq i64 %63, 0
  br i1 %.not99105, 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
  %.idx100 = shl i64 %66, 4
  %67 = getelementptr i8, ptr %8, i64 %.idx100
  %.str.7..str.8 = select i1 %65, ptr @.str.7, ptr @.str.8
  %68 = call i32 @dlatbs_(ptr noundef %1, ptr noundef nonnull %.str.7..str.8, ptr noundef %2, ptr noundef nonnull %17, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef %5, ptr noundef nonnull %6, ptr noundef %8, ptr noundef nonnull %14, ptr noundef %67, ptr noundef nonnull %10) #3
  store i8 89, ptr %17, align 1, !tbaa !9
  %69 = load double, ptr %14, align 8, !tbaa !10
  %70 = fcmp une double %69, 1.000000e+00
  br i1 %70, label %71, label %84

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

82:                                               ; preds = %71
  %83 = call i32 @drscl_(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %8, ptr noundef nonnull @c__1) #3
  br label %84

84:                                               ; preds = %82, %.lr.ph
  %85 = load i64, ptr %3, align 8, !tbaa !5
  %86 = getelementptr double, ptr %8, i64 %85
  %87 = call i32 @dlacn2_(ptr noundef nonnull %3, ptr noundef %86, ptr noundef %8, ptr noundef %9, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #3
  %88 = load i64, ptr %13, align 8, !tbaa !5
  %.not99 = icmp eq i64 %88, 0
  br i1 %.not99, label %._crit_edge, label %.lr.ph

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

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

.loopexit:                                        ; preds = %71, %._crit_edge, %91, %50, %49, %.thread102
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #3
  ret i32 0
}

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

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

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

declare double @dlamch_(ptr noundef) local_unnamed_addr #2

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

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

declare i32 @dlatbs_(ptr noundef, 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_idamax(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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


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