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

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

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

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

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

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

79:                                               ; preds = %73, %66
  %80 = load i32, ptr %32, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %88, label %82

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

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

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

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

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

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

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

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

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

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

116:                                              ; preds = %109
  %117 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 -7, ptr %117, align 4, !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 %22, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %132

127:                                              ; preds = %123
  %128 = load ptr, ptr %22, align 8, !tbaa !5
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = sub nsw i32 0, %129
  store i32 %130, ptr %25, align 4, !tbaa !9
  %131 = call i32 @xerbla_(ptr noundef @.str.5, ptr noundef %25, i32 noundef 6)
  store i32 1, ptr %40, align 4
  br label %284

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

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

138:                                              ; preds = %132
  %139 = load ptr, ptr %19, 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 %15, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = icmp sge i32 1, %142
  br i1 %143, label %144, label %145

144:                                              ; preds = %138
  br label %148

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

148:                                              ; preds = %145, %144
  %149 = phi i32 [ 1, %144 ], [ %147, %145 ]
  %150 = sitofp i32 %149 to double
  %151 = fmul double %140, %150
  store double %151, ptr %38, align 8, !tbaa !12
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = load ptr, ptr %15, align 8, !tbaa !5
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = load ptr, ptr %17, align 8, !tbaa !5
  %158 = load i32, ptr %24, align 4, !tbaa !9
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds double, ptr %157, i64 %159
  %161 = load ptr, ptr %18, align 8, !tbaa !5
  %162 = load ptr, ptr %20, align 8, !tbaa !5
  %163 = getelementptr inbounds double, ptr %162, i64 1
  %164 = call double @dlantb_(ptr noundef %152, ptr noundef %153, ptr noundef %154, ptr noundef %155, ptr noundef %156, ptr noundef %160, ptr noundef %161, ptr noundef %163)
  store double %164, ptr %31, align 8, !tbaa !12
  %165 = load double, ptr %31, align 8, !tbaa !12
  %166 = fcmp ogt double %165, 0.000000e+00
  br i1 %166, label %167, label %282

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

171:                                              ; preds = %167
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %173

172:                                              ; preds = %167
  store i32 2, ptr %28, align 4, !tbaa !9
  br label %173

173:                                              ; preds = %172, %171
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %271, %173
  %175 = load ptr, ptr %15, align 8, !tbaa !5
  %176 = load ptr, ptr %20, align 8, !tbaa !5
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = add nsw i32 %178, 1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds double, ptr %176, i64 %180
  %182 = load ptr, ptr %20, align 8, !tbaa !5
  %183 = getelementptr inbounds double, ptr %182, i64 1
  %184 = load ptr, ptr %21, align 8, !tbaa !5
  %185 = getelementptr inbounds i32, ptr %184, i64 1
  %186 = getelementptr inbounds [3 x i32], ptr %30, i64 0, i64 0
  call void @dlacn2_(ptr noundef %175, ptr noundef %181, ptr noundef %183, ptr noundef %185, ptr noundef %35, ptr noundef %27, ptr noundef %186)
  %187 = load i32, ptr %27, align 4, !tbaa !9
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %272

189:                                              ; preds = %174
  %190 = load i32, ptr %27, align 4, !tbaa !9
  %191 = load i32, ptr %28, align 4, !tbaa !9
  %192 = icmp eq i32 %190, %191
  br i1 %192, label %193, label %214

193:                                              ; preds = %189
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = load ptr, ptr %14, align 8, !tbaa !5
  %196 = getelementptr inbounds [1 x i8], ptr %37, i64 0, i64 0
  %197 = load ptr, ptr %15, align 8, !tbaa !5
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = load ptr, ptr %17, align 8, !tbaa !5
  %200 = load i32, ptr %24, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  %203 = load ptr, ptr %18, align 8, !tbaa !5
  %204 = load ptr, ptr %20, align 8, !tbaa !5
  %205 = getelementptr inbounds double, ptr %204, i64 1
  %206 = load ptr, ptr %20, align 8, !tbaa !5
  %207 = load ptr, ptr %15, align 8, !tbaa !5
  %208 = load i32, ptr %207, align 4, !tbaa !9
  %209 = shl i32 %208, 1
  %210 = add nsw i32 %209, 1
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds double, ptr %206, i64 %211
  %213 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dlatbs_(ptr noundef %194, ptr noundef @.str.7, ptr noundef %195, ptr noundef %196, ptr noundef %197, ptr noundef %198, ptr noundef %202, ptr noundef %203, ptr noundef %205, ptr noundef %29, ptr noundef %212, ptr noundef %213)
  br label %235

214:                                              ; preds = %189
  %215 = load ptr, ptr %13, align 8, !tbaa !5
  %216 = load ptr, ptr %14, align 8, !tbaa !5
  %217 = getelementptr inbounds [1 x i8], ptr %37, i64 0, i64 0
  %218 = load ptr, ptr %15, align 8, !tbaa !5
  %219 = load ptr, ptr %16, align 8, !tbaa !5
  %220 = load ptr, ptr %17, align 8, !tbaa !5
  %221 = load i32, ptr %24, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds double, ptr %220, i64 %222
  %224 = load ptr, ptr %18, align 8, !tbaa !5
  %225 = load ptr, ptr %20, align 8, !tbaa !5
  %226 = getelementptr inbounds double, ptr %225, i64 1
  %227 = load ptr, ptr %20, align 8, !tbaa !5
  %228 = load ptr, ptr %15, align 8, !tbaa !5
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = shl i32 %229, 1
  %231 = add nsw i32 %230, 1
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds double, ptr %227, i64 %232
  %234 = load ptr, ptr %22, align 8, !tbaa !5
  call void @dlatbs_(ptr noundef %215, ptr noundef @.str.8, ptr noundef %216, ptr noundef %217, ptr noundef %218, ptr noundef %219, ptr noundef %223, ptr noundef %224, ptr noundef %226, ptr noundef %29, ptr noundef %233, ptr noundef %234)
  br label %235

235:                                              ; preds = %214, %193
  %236 = getelementptr inbounds [1 x i8], ptr %37, i64 0, i64 0
  store i8 89, ptr %236, align 1, !tbaa !11
  %237 = load double, ptr %29, align 8, !tbaa !12
  %238 = fcmp une double %237, 1.000000e+00
  br i1 %238, label %239, label %271

239:                                              ; preds = %235
  %240 = load ptr, ptr %15, align 8, !tbaa !5
  %241 = load ptr, ptr %20, align 8, !tbaa !5
  %242 = getelementptr inbounds double, ptr %241, i64 1
  %243 = call i32 @idamax_(ptr noundef %240, ptr noundef %242, ptr noundef @c__1)
  store i32 %243, ptr %34, align 4, !tbaa !9
  %244 = load ptr, ptr %20, align 8, !tbaa !5
  %245 = load i32, ptr %34, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds double, ptr %244, i64 %246
  %248 = load double, ptr %247, align 8, !tbaa !12
  store double %248, ptr %26, align 8, !tbaa !12
  %249 = load double, ptr %26, align 8, !tbaa !12
  %250 = fcmp oge double %249, 0.000000e+00
  br i1 %250, label %251, label %253

251:                                              ; preds = %239
  %252 = load double, ptr %26, align 8, !tbaa !12
  br label %256

253:                                              ; preds = %239
  %254 = load double, ptr %26, align 8, !tbaa !12
  %255 = fneg double %254
  br label %256

256:                                              ; preds = %253, %251
  %257 = phi double [ %252, %251 ], [ %255, %253 ]
  store double %257, ptr %33, align 8, !tbaa !12
  %258 = load double, ptr %29, align 8, !tbaa !12
  %259 = load double, ptr %33, align 8, !tbaa !12
  %260 = load double, ptr %38, align 8, !tbaa !12
  %261 = fmul double %259, %260
  %262 = fcmp olt double %258, %261
  br i1 %262, label %266, label %263

263:                                              ; preds = %256
  %264 = load double, ptr %29, align 8, !tbaa !12
  %265 = fcmp oeq double %264, 0.000000e+00
  br i1 %265, label %266, label %267

266:                                              ; preds = %263, %256
  br label %283

267:                                              ; preds = %263
  %268 = load ptr, ptr %15, align 8, !tbaa !5
  %269 = load ptr, ptr %20, align 8, !tbaa !5
  %270 = getelementptr inbounds double, ptr %269, i64 1
  call void @drscl_(ptr noundef %268, ptr noundef %29, ptr noundef %270, ptr noundef @c__1)
  br label %271

271:                                              ; preds = %267, %235
  br label %174

272:                                              ; preds = %174
  %273 = load double, ptr %35, align 8, !tbaa !12
  %274 = fcmp une double %273, 0.000000e+00
  br i1 %274, label %275, label %281

275:                                              ; preds = %272
  %276 = load double, ptr %31, align 8, !tbaa !12
  %277 = fdiv double 1.000000e+00, %276
  %278 = load double, ptr %35, align 8, !tbaa !12
  %279 = fdiv double %277, %278
  %280 = load ptr, ptr %19, align 8, !tbaa !5
  store double %279, ptr %280, align 8, !tbaa !12
  br label %281

281:                                              ; preds = %275, %272
  br label %282

282:                                              ; preds = %281, %148
  br label %283

283:                                              ; preds = %282, %266
  store i32 1, ptr %40, align 4
  br label %284

284:                                              ; preds = %283, %136, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 1, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  ret void
}

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

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

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

declare 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 void @dlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca double, align 8
  %15 = alloca [3 x i32], align 4
  %16 = alloca double, align 8
  %17 = alloca [1 x i8], align 1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 12, 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 i32 0, ptr %10, align 4, !tbaa !5
  %19 = tail call i32 @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 i32 @lsame_(ptr noundef %2, ptr noundef nonnull @.str.2) #3
  br label %28

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

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

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

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

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

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

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

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

41:                                               ; preds = %38
  %42 = load i32, ptr %6, align 4, !tbaa !5
  %.not96 = icmp sgt i32 %42, %39
  br i1 %.not96, label %43, label %.thread100.sink.split

43:                                               ; preds = %41
  %.pr = load i32, ptr %10, align 4, !tbaa !5
  %.not97 = icmp eq i32 %.pr, 0
  br i1 %.not97, label %47, label %.thread100

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

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

47:                                               ; preds = %43
  %48 = icmp eq i32 %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 i32, ptr %3, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 2
  %54 = uitofp nneg i32 %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 i32 0, ptr %13, align 4, !tbaa !5
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %gep103 = getelementptr double, ptr %8, i64 %61
  call void @dlacn2_(ptr noundef nonnull %3, ptr noundef %gep103, ptr noundef %8, ptr noundef %9, ptr noundef nonnull %16, ptr noundef nonnull %13, ptr noundef nonnull %15) #3
  %62 = load i32, ptr %13, align 4, !tbaa !5
  %.not98104 = icmp eq i32 %62, 0
  br i1 %.not98104, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %59, %85
  %63 = phi i32 [ %88, %85 ], [ %62, %59 ]
  %64 = icmp eq i32 %63, %.
  %65 = load i32, ptr %3, align 4, !tbaa !5
  %66 = shl i32 %65, 1
  %67 = or disjoint i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %18, i64 %68
  %.str.7..str.8 = select i1 %64, ptr @.str.7, ptr @.str.8
  call void @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 nonnull %69, ptr noundef nonnull %10) #3
  store i8 89, ptr %17, align 1, !tbaa !9
  %70 = load double, ptr %14, align 8, !tbaa !10
  %71 = fcmp une double %70, 1.000000e+00
  br i1 %71, label %72, label %85

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

84:                                               ; preds = %72
  call void @drscl_(ptr noundef nonnull %3, ptr noundef nonnull %14, ptr noundef nonnull %8, ptr noundef nonnull @c__1) #3
  br label %85

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

._crit_edge:                                      ; preds = %85, %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 = %72, %._crit_edge, %91, %50, %49, %.thread100
  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 12, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #3
  ret void
}

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

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

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

declare 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 void @dlacn2_(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @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 = !{!"int", !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,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass