; LLVM IR from OpenMathLib/OpenBLAS :: lapack-netlib/LAPACKE/src (lapacke_dgedmdq)

; 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 [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @LAPACKE_dgedmdq(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i8 noundef signext %4, i8 noundef signext %5, i8 noundef signext %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, i32 noundef %22, ptr noundef %23, ptr noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef %27, ptr noundef %28, i32 noundef %29) #0 {
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i8, align 1
  %34 = alloca i8, align 1
  %35 = alloca i8, align 1
  %36 = alloca i8, align 1
  %37 = alloca i8, align 1
  %38 = alloca i8, align 1
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca ptr, align 8
  %45 = alloca i32, align 4
  %46 = alloca ptr, align 8
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca ptr, align 8
  %50 = alloca i32, align 4
  %51 = alloca ptr, align 8
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca i32, align 4
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca i32, align 4
  %58 = alloca ptr, align 8
  %59 = alloca i32, align 4
  %60 = alloca ptr, align 8
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca i32, align 4
  %64 = alloca i32, align 4
  %65 = alloca ptr, align 8
  %66 = alloca ptr, align 8
  %67 = alloca double, align 8
  %68 = alloca i32, align 4
  %69 = alloca i32, align 4
  store i32 %0, ptr %32, align 4, !tbaa !5
  store i8 %1, ptr %33, align 1, !tbaa !9
  store i8 %2, ptr %34, align 1, !tbaa !9
  store i8 %3, ptr %35, align 1, !tbaa !9
  store i8 %4, ptr %36, align 1, !tbaa !9
  store i8 %5, ptr %37, align 1, !tbaa !9
  store i8 %6, ptr %38, align 1, !tbaa !9
  store i32 %7, ptr %39, align 4, !tbaa !5
  store i32 %8, ptr %40, align 4, !tbaa !5
  store i32 %9, ptr %41, align 4, !tbaa !5
  store ptr %10, ptr %42, align 8, !tbaa !10
  store i32 %11, ptr %43, align 4, !tbaa !5
  store ptr %12, ptr %44, align 8, !tbaa !10
  store i32 %13, ptr %45, align 4, !tbaa !5
  store ptr %14, ptr %46, align 8, !tbaa !10
  store i32 %15, ptr %47, align 4, !tbaa !5
  store i32 %16, ptr %48, align 4, !tbaa !5
  store ptr %17, ptr %49, align 8, !tbaa !10
  store i32 %18, ptr %50, align 4, !tbaa !5
  store ptr %19, ptr %51, align 8, !tbaa !10
  store ptr %20, ptr %52, align 8, !tbaa !10
  store ptr %21, ptr %53, align 8, !tbaa !10
  store i32 %22, ptr %54, align 4, !tbaa !5
  store ptr %23, ptr %55, align 8, !tbaa !10
  store ptr %24, ptr %56, align 8, !tbaa !10
  store i32 %25, ptr %57, align 4, !tbaa !5
  store ptr %26, ptr %58, align 8, !tbaa !10
  store i32 %27, ptr %59, align 4, !tbaa !5
  store ptr %28, ptr %60, align 8, !tbaa !10
  store i32 %29, ptr %61, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #5
  store i32 0, ptr %62, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #5
  store i32 -1, ptr %63, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #5
  store i32 -1, ptr %64, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %65) #5
  store ptr null, ptr %65, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #5
  store ptr null, ptr %66, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %68) #5
  %70 = load i32, ptr %32, align 4, !tbaa !5
  %71 = icmp ne i32 %70, 102
  br i1 %71, label %72, label %76

72:                                               ; preds = %30
  %73 = load i32, ptr %32, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 101
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef -1)
  store i32 -1, ptr %31, align 4
  store i32 1, ptr %69, align 4
  br label %245

76:                                               ; preds = %72, %30
  %77 = call i32 @LAPACKE_get_nancheck()
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %143

79:                                               ; preds = %76
  %80 = load i32, ptr %32, align 4, !tbaa !5
  %81 = load i32, ptr %40, align 4, !tbaa !5
  %82 = load i32, ptr %41, align 4, !tbaa !5
  %83 = load ptr, ptr %42, align 8, !tbaa !10
  %84 = load i32, ptr %43, align 4, !tbaa !5
  %85 = call i32 @LAPACKE_dge_nancheck(i32 noundef %80, i32 noundef %81, i32 noundef %82, ptr noundef %83, i32 noundef %84)
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %79
  store i32 -11, ptr %31, align 4
  store i32 1, ptr %69, align 4
  br label %245

88:                                               ; preds = %79
  %89 = load i32, ptr %32, align 4, !tbaa !5
  %90 = load i32, ptr %40, align 4, !tbaa !5
  %91 = load i32, ptr %41, align 4, !tbaa !5
  %92 = load ptr, ptr %44, align 8, !tbaa !10
  %93 = load i32, ptr %45, align 4, !tbaa !5
  %94 = call i32 @LAPACKE_dge_nancheck(i32 noundef %89, i32 noundef %90, i32 noundef %91, ptr noundef %92, i32 noundef %93)
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %97

96:                                               ; preds = %88
  store i32 -13, ptr %31, align 4
  store i32 1, ptr %69, align 4
  br label %245

97:                                               ; preds = %88
  %98 = load i32, ptr %32, align 4, !tbaa !5
  %99 = load i32, ptr %40, align 4, !tbaa !5
  %100 = load i32, ptr %41, align 4, !tbaa !5
  %101 = load ptr, ptr %46, align 8, !tbaa !10
  %102 = load i32, ptr %47, align 4, !tbaa !5
  %103 = call i32 @LAPACKE_dge_nancheck(i32 noundef %98, i32 noundef %99, i32 noundef %100, ptr noundef %101, i32 noundef %102)
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %106

105:                                              ; preds = %97
  store i32 -15, ptr %31, align 4
  store i32 1, ptr %69, align 4
  br label %245

106:                                              ; preds = %97
  %107 = load i32, ptr %32, align 4, !tbaa !5
  %108 = load i32, ptr %40, align 4, !tbaa !5
  %109 = load i32, ptr %41, align 4, !tbaa !5
  %110 = load ptr, ptr %53, align 8, !tbaa !10
  %111 = load i32, ptr %54, align 4, !tbaa !5
  %112 = call i32 @LAPACKE_dge_nancheck(i32 noundef %107, i32 noundef %108, i32 noundef %109, ptr noundef %110, i32 noundef %111)
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %106
  store i32 -22, ptr %31, align 4
  store i32 1, ptr %69, align 4
  br label %245

115:                                              ; preds = %106
  %116 = load i32, ptr %32, align 4, !tbaa !5
  %117 = load i32, ptr %40, align 4, !tbaa !5
  %118 = load i32, ptr %41, align 4, !tbaa !5
  %119 = load ptr, ptr %56, align 8, !tbaa !10
  %120 = load i32, ptr %57, align 4, !tbaa !5
  %121 = call i32 @LAPACKE_dge_nancheck(i32 noundef %116, i32 noundef %117, i32 noundef %118, ptr noundef %119, i32 noundef %120)
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %123, label %124

123:                                              ; preds = %115
  store i32 -25, ptr %31, align 4
  store i32 1, ptr %69, align 4
  br label %245

124:                                              ; preds = %115
  %125 = load i32, ptr %32, align 4, !tbaa !5
  %126 = load i32, ptr %40, align 4, !tbaa !5
  %127 = load i32, ptr %41, align 4, !tbaa !5
  %128 = load ptr, ptr %58, align 8, !tbaa !10
  %129 = load i32, ptr %59, align 4, !tbaa !5
  %130 = call i32 @LAPACKE_dge_nancheck(i32 noundef %125, i32 noundef %126, i32 noundef %127, ptr noundef %128, i32 noundef %129)
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %133

132:                                              ; preds = %124
  store i32 -27, ptr %31, align 4
  store i32 1, ptr %69, align 4
  br label %245

133:                                              ; preds = %124
  %134 = load i32, ptr %32, align 4, !tbaa !5
  %135 = load i32, ptr %40, align 4, !tbaa !5
  %136 = load i32, ptr %41, align 4, !tbaa !5
  %137 = load ptr, ptr %60, align 8, !tbaa !10
  %138 = load i32, ptr %61, align 4, !tbaa !5
  %139 = call i32 @LAPACKE_dge_nancheck(i32 noundef %134, i32 noundef %135, i32 noundef %136, ptr noundef %137, i32 noundef %138)
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %142

141:                                              ; preds = %133
  store i32 -29, ptr %31, align 4
  store i32 1, ptr %69, align 4
  br label %245

142:                                              ; preds = %133
  br label %143

143:                                              ; preds = %142, %76
  %144 = load i32, ptr %32, align 4, !tbaa !5
  %145 = load i8, ptr %33, align 1, !tbaa !9
  %146 = load i8, ptr %34, align 1, !tbaa !9
  %147 = load i8, ptr %35, align 1, !tbaa !9
  %148 = load i8, ptr %36, align 1, !tbaa !9
  %149 = load i8, ptr %37, align 1, !tbaa !9
  %150 = load i8, ptr %38, align 1, !tbaa !9
  %151 = load i32, ptr %39, align 4, !tbaa !5
  %152 = load i32, ptr %40, align 4, !tbaa !5
  %153 = load i32, ptr %41, align 4, !tbaa !5
  %154 = load ptr, ptr %42, align 8, !tbaa !10
  %155 = load i32, ptr %43, align 4, !tbaa !5
  %156 = load ptr, ptr %44, align 8, !tbaa !10
  %157 = load i32, ptr %45, align 4, !tbaa !5
  %158 = load ptr, ptr %46, align 8, !tbaa !10
  %159 = load i32, ptr %47, align 4, !tbaa !5
  %160 = load i32, ptr %48, align 4, !tbaa !5
  %161 = load ptr, ptr %49, align 8, !tbaa !10
  %162 = load i32, ptr %50, align 4, !tbaa !5
  %163 = load ptr, ptr %51, align 8, !tbaa !10
  %164 = load ptr, ptr %52, align 8, !tbaa !10
  %165 = load ptr, ptr %53, align 8, !tbaa !10
  %166 = load i32, ptr %54, align 4, !tbaa !5
  %167 = load ptr, ptr %55, align 8, !tbaa !10
  %168 = load ptr, ptr %56, align 8, !tbaa !10
  %169 = load i32, ptr %57, align 4, !tbaa !5
  %170 = load ptr, ptr %58, align 8, !tbaa !10
  %171 = load i32, ptr %59, align 4, !tbaa !5
  %172 = load ptr, ptr %60, align 8, !tbaa !10
  %173 = load i32, ptr %61, align 4, !tbaa !5
  %174 = load i32, ptr %63, align 4, !tbaa !5
  %175 = load i32, ptr %64, align 4, !tbaa !5
  %176 = call i32 @LAPACKE_dgedmdq_work(i32 noundef %144, i8 noundef signext %145, i8 noundef signext %146, i8 noundef signext %147, i8 noundef signext %148, i8 noundef signext %149, i8 noundef signext %150, i32 noundef %151, i32 noundef %152, i32 noundef %153, ptr noundef %154, i32 noundef %155, ptr noundef %156, i32 noundef %157, ptr noundef %158, i32 noundef %159, i32 noundef %160, ptr noundef %161, i32 noundef %162, ptr noundef %163, ptr noundef %164, ptr noundef %165, i32 noundef %166, ptr noundef %167, ptr noundef %168, i32 noundef %169, ptr noundef %170, i32 noundef %171, ptr noundef %172, i32 noundef %173, ptr noundef %67, i32 noundef %174, ptr noundef %68, i32 noundef %175)
  store i32 %176, ptr %62, align 4, !tbaa !5
  %177 = load i32, ptr %62, align 4, !tbaa !5
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %180

179:                                              ; preds = %143
  br label %238

180:                                              ; preds = %143
  %181 = load double, ptr %67, align 8, !tbaa !12
  %182 = fptosi double %181 to i32
  store i32 %182, ptr %63, align 4, !tbaa !5
  %183 = load i32, ptr %68, align 4, !tbaa !5
  store i32 %183, ptr %64, align 4, !tbaa !5
  %184 = load i32, ptr %63, align 4, !tbaa !5
  %185 = sext i32 %184 to i64
  %186 = mul i64 8, %185
  %187 = call noalias ptr @malloc(i64 noundef %186) #6
  store ptr %187, ptr %65, align 8, !tbaa !10
  %188 = load ptr, ptr %65, align 8, !tbaa !10
  %189 = icmp eq ptr %188, null
  br i1 %189, label %190, label %191

190:                                              ; preds = %180
  store i32 -1010, ptr %62, align 4, !tbaa !5
  br label %238

191:                                              ; preds = %180
  %192 = load i32, ptr %64, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = mul i64 4, %193
  %195 = call noalias ptr @malloc(i64 noundef %194) #6
  store ptr %195, ptr %66, align 8, !tbaa !10
  %196 = load ptr, ptr %66, align 8, !tbaa !10
  %197 = icmp eq ptr %196, null
  br i1 %197, label %198, label %199

198:                                              ; preds = %191
  store i32 -1010, ptr %62, align 4, !tbaa !5
  br label %236

199:                                              ; preds = %191
  %200 = load i32, ptr %32, align 4, !tbaa !5
  %201 = load i8, ptr %33, align 1, !tbaa !9
  %202 = load i8, ptr %34, align 1, !tbaa !9
  %203 = load i8, ptr %35, align 1, !tbaa !9
  %204 = load i8, ptr %36, align 1, !tbaa !9
  %205 = load i8, ptr %37, align 1, !tbaa !9
  %206 = load i8, ptr %38, align 1, !tbaa !9
  %207 = load i32, ptr %39, align 4, !tbaa !5
  %208 = load i32, ptr %40, align 4, !tbaa !5
  %209 = load i32, ptr %41, align 4, !tbaa !5
  %210 = load ptr, ptr %42, align 8, !tbaa !10
  %211 = load i32, ptr %43, align 4, !tbaa !5
  %212 = load ptr, ptr %44, align 8, !tbaa !10
  %213 = load i32, ptr %45, align 4, !tbaa !5
  %214 = load ptr, ptr %46, align 8, !tbaa !10
  %215 = load i32, ptr %47, align 4, !tbaa !5
  %216 = load i32, ptr %48, align 4, !tbaa !5
  %217 = load ptr, ptr %49, align 8, !tbaa !10
  %218 = load i32, ptr %50, align 4, !tbaa !5
  %219 = load ptr, ptr %51, align 8, !tbaa !10
  %220 = load ptr, ptr %52, align 8, !tbaa !10
  %221 = load ptr, ptr %53, align 8, !tbaa !10
  %222 = load i32, ptr %54, align 4, !tbaa !5
  %223 = load ptr, ptr %55, align 8, !tbaa !10
  %224 = load ptr, ptr %56, align 8, !tbaa !10
  %225 = load i32, ptr %57, align 4, !tbaa !5
  %226 = load ptr, ptr %58, align 8, !tbaa !10
  %227 = load i32, ptr %59, align 4, !tbaa !5
  %228 = load ptr, ptr %60, align 8, !tbaa !10
  %229 = load i32, ptr %61, align 4, !tbaa !5
  %230 = load ptr, ptr %65, align 8, !tbaa !10
  %231 = load i32, ptr %63, align 4, !tbaa !5
  %232 = load ptr, ptr %66, align 8, !tbaa !10
  %233 = load i32, ptr %64, align 4, !tbaa !5
  %234 = call i32 @LAPACKE_dgedmdq_work(i32 noundef %200, i8 noundef signext %201, i8 noundef signext %202, i8 noundef signext %203, i8 noundef signext %204, i8 noundef signext %205, i8 noundef signext %206, i32 noundef %207, i32 noundef %208, i32 noundef %209, ptr noundef %210, i32 noundef %211, ptr noundef %212, i32 noundef %213, ptr noundef %214, i32 noundef %215, i32 noundef %216, ptr noundef %217, i32 noundef %218, ptr noundef %219, ptr noundef %220, ptr noundef %221, i32 noundef %222, ptr noundef %223, ptr noundef %224, i32 noundef %225, ptr noundef %226, i32 noundef %227, ptr noundef %228, i32 noundef %229, ptr noundef %230, i32 noundef %231, ptr noundef %232, i32 noundef %233)
  store i32 %234, ptr %62, align 4, !tbaa !5
  %235 = load ptr, ptr %66, align 8, !tbaa !10
  call void @free(ptr noundef %235) #5
  br label %236

236:                                              ; preds = %199, %198
  %237 = load ptr, ptr %65, align 8, !tbaa !10
  call void @free(ptr noundef %237) #5
  br label %238

238:                                              ; preds = %236, %190, %179
  %239 = load i32, ptr %62, align 4, !tbaa !5
  %240 = icmp eq i32 %239, -1010
  br i1 %240, label %241, label %243

241:                                              ; preds = %238
  %242 = load i32, ptr %62, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %242)
  br label %243

243:                                              ; preds = %241, %238
  %244 = load i32, ptr %62, align 4, !tbaa !5
  store i32 %244, ptr %31, align 4
  store i32 1, ptr %69, align 4
  br label %245

245:                                              ; preds = %243, %141, %132, %123, %114, %105, %96, %87, %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %68) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %65) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #5
  %246 = load i32, ptr %31, align 4
  ret i32 %246
}

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

declare void @LAPACKE_xerbla(ptr noundef, i32 noundef) #2

declare i32 @LAPACKE_get_nancheck() #2

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

declare i32 @LAPACKE_dgedmdq_work(i32 noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; 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 allocsize(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 #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"any pointer", !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 [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @LAPACKE_dgedmdq(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i8 noundef signext %4, i8 noundef signext %5, i8 noundef signext %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, i32 noundef %22, ptr noundef %23, ptr noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef %27, ptr noundef %28, i32 noundef %29) local_unnamed_addr #0 {
  %31 = alloca double, align 8
  %32 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %31) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %32) #5
  %33 = add i32 %0, -103
  %or.cond = icmp ult i32 %33, -2
  br i1 %or.cond, label %34, label %35

34:                                               ; preds = %30
  tail call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1) #5
  br label %71

35:                                               ; preds = %30
  %36 = tail call i32 @LAPACKE_get_nancheck() #5
  %.not = icmp eq i32 %36, 0
  br i1 %.not, label %51, label %37

37:                                               ; preds = %35
  %38 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11) #5
  %.not118 = icmp eq i32 %38, 0
  br i1 %.not118, label %39, label %71

39:                                               ; preds = %37
  %40 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %12, i32 noundef %13) #5
  %.not119 = icmp eq i32 %40, 0
  br i1 %.not119, label %41, label %71

41:                                               ; preds = %39
  %42 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %14, i32 noundef %15) #5
  %.not120 = icmp eq i32 %42, 0
  br i1 %.not120, label %43, label %71

43:                                               ; preds = %41
  %44 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %21, i32 noundef %22) #5
  %.not121 = icmp eq i32 %44, 0
  br i1 %.not121, label %45, label %71

45:                                               ; preds = %43
  %46 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %24, i32 noundef %25) #5
  %.not122 = icmp eq i32 %46, 0
  br i1 %.not122, label %47, label %71

47:                                               ; preds = %45
  %48 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %26, i32 noundef %27) #5
  %.not123 = icmp eq i32 %48, 0
  br i1 %.not123, label %49, label %71

49:                                               ; preds = %47
  %50 = tail call i32 @LAPACKE_dge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %28, i32 noundef %29) #5
  %.not124 = icmp eq i32 %50, 0
  br i1 %.not124, label %51, label %71

51:                                               ; preds = %49, %35
  %52 = call i32 @LAPACKE_dgedmdq_work(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i8 noundef signext %4, i8 noundef signext %5, i8 noundef signext %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, i32 noundef %22, ptr noundef %23, ptr noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef %27, ptr noundef %28, i32 noundef %29, ptr noundef nonnull %31, i32 noundef -1, ptr noundef nonnull %32, i32 noundef -1) #5
  %.not125 = icmp eq i32 %52, 0
  br i1 %.not125, label %53, label %69

53:                                               ; preds = %51
  %54 = load double, ptr %31, align 8, !tbaa !5
  %55 = fptosi double %54 to i32
  %56 = load i32, ptr %32, align 4, !tbaa !9
  %57 = sext i32 %55 to i64
  %58 = shl nsw i64 %57, 3
  %59 = call noalias ptr @malloc(i64 noundef %58) #6
  %60 = icmp eq ptr %59, null
  br i1 %60, label %.thread, label %61

61:                                               ; preds = %53
  %62 = sext i32 %56 to i64
  %63 = shl nsw i64 %62, 2
  %64 = call noalias ptr @malloc(i64 noundef %63) #6
  %65 = icmp eq ptr %64, null
  br i1 %65, label %68, label %66

66:                                               ; preds = %61
  %67 = call i32 @LAPACKE_dgedmdq_work(i32 noundef %0, i8 noundef signext %1, i8 noundef signext %2, i8 noundef signext %3, i8 noundef signext %4, i8 noundef signext %5, i8 noundef signext %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11, ptr noundef %12, i32 noundef %13, ptr noundef %14, i32 noundef %15, i32 noundef %16, ptr noundef %17, i32 noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21, i32 noundef %22, ptr noundef %23, ptr noundef %24, i32 noundef %25, ptr noundef %26, i32 noundef %27, ptr noundef %28, i32 noundef %29, ptr noundef nonnull %59, i32 noundef %55, ptr noundef nonnull %64, i32 noundef %56) #5
  call void @free(ptr noundef nonnull %64) #5
  br label %68

68:                                               ; preds = %61, %66
  %.0 = phi i32 [ %67, %66 ], [ -1010, %61 ]
  call void @free(ptr noundef nonnull %59) #5
  br label %69

69:                                               ; preds = %51, %68
  %.1 = phi i32 [ %52, %51 ], [ %.0, %68 ]
  %70 = icmp eq i32 %.1, -1010
  br i1 %70, label %.thread, label %71

.thread:                                          ; preds = %53, %69
  call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1010) #5
  br label %71

71:                                               ; preds = %69, %.thread, %49, %47, %45, %43, %41, %39, %37, %34
  %.0114 = phi i32 [ -1, %34 ], [ -11, %37 ], [ -13, %39 ], [ -15, %41 ], [ -22, %43 ], [ -25, %45 ], [ -27, %47 ], [ -29, %49 ], [ -1010, %.thread ], [ %.1, %69 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %32) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %31) #5
  ret i32 %.0114
}

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

declare void @LAPACKE_xerbla(ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @LAPACKE_get_nancheck() local_unnamed_addr #2

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

declare i32 @LAPACKE_dgedmdq_work(i32 noundef, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

; 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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass