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

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

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

76:                                               ; preds = %73
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef -1)
  store i32 -1, ptr %30, align 4
  store i32 1, ptr %70, align 4
  br label %259

77:                                               ; preds = %73, %29
  %78 = call i32 @LAPACKE_get_nancheck()
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %80, label %144

80:                                               ; preds = %77
  %81 = load i32, ptr %31, align 4, !tbaa !5
  %82 = load i32, ptr %39, align 4, !tbaa !5
  %83 = load i32, ptr %40, align 4, !tbaa !5
  %84 = load ptr, ptr %41, align 8, !tbaa !10
  %85 = load i32, ptr %42, align 4, !tbaa !5
  %86 = call i32 @LAPACKE_cge_nancheck(i32 noundef %81, i32 noundef %82, i32 noundef %83, ptr noundef %84, i32 noundef %85)
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %88, label %89

88:                                               ; preds = %80
  store i32 -11, ptr %30, align 4
  store i32 1, ptr %70, align 4
  br label %259

89:                                               ; preds = %80
  %90 = load i32, ptr %31, align 4, !tbaa !5
  %91 = load i32, ptr %39, align 4, !tbaa !5
  %92 = load i32, ptr %40, align 4, !tbaa !5
  %93 = load ptr, ptr %43, align 8, !tbaa !10
  %94 = load i32, ptr %44, align 4, !tbaa !5
  %95 = call i32 @LAPACKE_cge_nancheck(i32 noundef %90, i32 noundef %91, i32 noundef %92, ptr noundef %93, i32 noundef %94)
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %98

97:                                               ; preds = %89
  store i32 -13, ptr %30, align 4
  store i32 1, ptr %70, align 4
  br label %259

98:                                               ; preds = %89
  %99 = load i32, ptr %31, align 4, !tbaa !5
  %100 = load i32, ptr %39, align 4, !tbaa !5
  %101 = load i32, ptr %40, align 4, !tbaa !5
  %102 = load ptr, ptr %45, align 8, !tbaa !10
  %103 = load i32, ptr %46, align 4, !tbaa !5
  %104 = call i32 @LAPACKE_cge_nancheck(i32 noundef %99, i32 noundef %100, i32 noundef %101, ptr noundef %102, i32 noundef %103)
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %107

106:                                              ; preds = %98
  store i32 -15, ptr %30, align 4
  store i32 1, ptr %70, align 4
  br label %259

107:                                              ; preds = %98
  %108 = load i32, ptr %31, align 4, !tbaa !5
  %109 = load i32, ptr %39, align 4, !tbaa !5
  %110 = load i32, ptr %40, align 4, !tbaa !5
  %111 = load ptr, ptr %51, align 8, !tbaa !10
  %112 = load i32, ptr %52, align 4, !tbaa !5
  %113 = call i32 @LAPACKE_cge_nancheck(i32 noundef %108, i32 noundef %109, i32 noundef %110, ptr noundef %111, i32 noundef %112)
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %116

115:                                              ; preds = %107
  store i32 -22, ptr %30, align 4
  store i32 1, ptr %70, align 4
  br label %259

116:                                              ; preds = %107
  %117 = load i32, ptr %31, align 4, !tbaa !5
  %118 = load i32, ptr %39, align 4, !tbaa !5
  %119 = load i32, ptr %40, align 4, !tbaa !5
  %120 = load ptr, ptr %54, align 8, !tbaa !10
  %121 = load i32, ptr %55, align 4, !tbaa !5
  %122 = call i32 @LAPACKE_cge_nancheck(i32 noundef %117, i32 noundef %118, i32 noundef %119, ptr noundef %120, i32 noundef %121)
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %125

124:                                              ; preds = %116
  store i32 -25, ptr %30, align 4
  store i32 1, ptr %70, align 4
  br label %259

125:                                              ; preds = %116
  %126 = load i32, ptr %31, align 4, !tbaa !5
  %127 = load i32, ptr %39, align 4, !tbaa !5
  %128 = load i32, ptr %40, align 4, !tbaa !5
  %129 = load ptr, ptr %56, align 8, !tbaa !10
  %130 = load i32, ptr %57, align 4, !tbaa !5
  %131 = call i32 @LAPACKE_cge_nancheck(i32 noundef %126, i32 noundef %127, i32 noundef %128, ptr noundef %129, i32 noundef %130)
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %125
  store i32 -27, ptr %30, align 4
  store i32 1, ptr %70, align 4
  br label %259

134:                                              ; preds = %125
  %135 = load i32, ptr %31, align 4, !tbaa !5
  %136 = load i32, ptr %39, align 4, !tbaa !5
  %137 = load i32, ptr %40, align 4, !tbaa !5
  %138 = load ptr, ptr %58, align 8, !tbaa !10
  %139 = load i32, ptr %59, align 4, !tbaa !5
  %140 = call i32 @LAPACKE_cge_nancheck(i32 noundef %135, i32 noundef %136, i32 noundef %137, ptr noundef %138, i32 noundef %139)
  %141 = icmp ne i32 %140, 0
  br i1 %141, label %142, label %143

142:                                              ; preds = %134
  store i32 -29, ptr %30, align 4
  store i32 1, ptr %70, align 4
  br label %259

143:                                              ; preds = %134
  br label %144

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

180:                                              ; preds = %144
  br label %252

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

193:                                              ; preds = %181
  store i32 -1010, ptr %60, align 4, !tbaa !5
  br label %252

194:                                              ; preds = %181
  %195 = load i32, ptr %61, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = mul i64 8, %196
  %198 = call noalias ptr @malloc(i64 noundef %197) #6
  store ptr %198, ptr %65, align 8, !tbaa !10
  %199 = load ptr, ptr %65, align 8, !tbaa !10
  %200 = icmp eq ptr %199, null
  br i1 %200, label %201, label %202

201:                                              ; preds = %194
  store i32 -1010, ptr %60, align 4, !tbaa !5
  br label %250

202:                                              ; preds = %194
  %203 = load i32, ptr %62, align 4, !tbaa !5
  %204 = sext i32 %203 to i64
  %205 = mul i64 4, %204
  %206 = call noalias ptr @malloc(i64 noundef %205) #6
  store ptr %206, ptr %66, align 8, !tbaa !10
  %207 = load ptr, ptr %66, align 8, !tbaa !10
  %208 = icmp eq ptr %207, null
  br i1 %208, label %209, label %210

209:                                              ; preds = %202
  store i32 -1010, ptr %60, align 4, !tbaa !5
  br label %248

210:                                              ; preds = %202
  %211 = load i32, ptr %31, align 4, !tbaa !5
  %212 = load i8, ptr %32, align 1, !tbaa !9
  %213 = load i8, ptr %33, align 1, !tbaa !9
  %214 = load i8, ptr %34, align 1, !tbaa !9
  %215 = load i8, ptr %35, align 1, !tbaa !9
  %216 = load i8, ptr %36, align 1, !tbaa !9
  %217 = load i8, ptr %37, align 1, !tbaa !9
  %218 = load i32, ptr %38, align 4, !tbaa !5
  %219 = load i32, ptr %39, align 4, !tbaa !5
  %220 = load i32, ptr %40, align 4, !tbaa !5
  %221 = load ptr, ptr %41, align 8, !tbaa !10
  %222 = load i32, ptr %42, align 4, !tbaa !5
  %223 = load ptr, ptr %43, align 8, !tbaa !10
  %224 = load i32, ptr %44, align 4, !tbaa !5
  %225 = load ptr, ptr %45, align 8, !tbaa !10
  %226 = load i32, ptr %46, align 4, !tbaa !5
  %227 = load i32, ptr %47, align 4, !tbaa !5
  %228 = load ptr, ptr %48, align 8, !tbaa !10
  %229 = load i32, ptr %49, align 4, !tbaa !5
  %230 = load ptr, ptr %50, align 8, !tbaa !10
  %231 = load ptr, ptr %51, align 8, !tbaa !10
  %232 = load i32, ptr %52, align 4, !tbaa !5
  %233 = load ptr, ptr %53, align 8, !tbaa !10
  %234 = load ptr, ptr %54, align 8, !tbaa !10
  %235 = load i32, ptr %55, align 4, !tbaa !5
  %236 = load ptr, ptr %56, align 8, !tbaa !10
  %237 = load i32, ptr %57, align 4, !tbaa !5
  %238 = load ptr, ptr %58, align 8, !tbaa !10
  %239 = load i32, ptr %59, align 4, !tbaa !5
  %240 = load ptr, ptr %64, align 8, !tbaa !10
  %241 = load i32, ptr %63, align 4, !tbaa !5
  %242 = load ptr, ptr %65, align 8, !tbaa !10
  %243 = load i32, ptr %61, align 4, !tbaa !5
  %244 = load ptr, ptr %66, align 8, !tbaa !10
  %245 = load i32, ptr %62, align 4, !tbaa !5
  %246 = call i32 @LAPACKE_cgedmdq_work(i32 noundef %211, i8 noundef signext %212, i8 noundef signext %213, i8 noundef signext %214, i8 noundef signext %215, i8 noundef signext %216, i8 noundef signext %217, i32 noundef %218, i32 noundef %219, i32 noundef %220, ptr noundef %221, i32 noundef %222, ptr noundef %223, i32 noundef %224, ptr noundef %225, i32 noundef %226, i32 noundef %227, ptr noundef %228, i32 noundef %229, ptr noundef %230, ptr noundef %231, i32 noundef %232, ptr noundef %233, ptr noundef %234, i32 noundef %235, ptr noundef %236, i32 noundef %237, ptr noundef %238, i32 noundef %239, ptr noundef %240, i32 noundef %241, ptr noundef %242, i32 noundef %243, ptr noundef %244, i32 noundef %245)
  store i32 %246, ptr %60, align 4, !tbaa !5
  %247 = load ptr, ptr %66, align 8, !tbaa !10
  call void @free(ptr noundef %247) #5
  br label %248

248:                                              ; preds = %210, %209
  %249 = load ptr, ptr %65, align 8, !tbaa !10
  call void @free(ptr noundef %249) #5
  br label %250

250:                                              ; preds = %248, %201
  %251 = load ptr, ptr %64, align 8, !tbaa !10
  call void @free(ptr noundef %251) #5
  br label %252

252:                                              ; preds = %250, %193, %180
  %253 = load i32, ptr %60, align 4, !tbaa !5
  %254 = icmp eq i32 %253, -1010
  br i1 %254, label %255, label %257

255:                                              ; preds = %252
  %256 = load i32, ptr %60, align 4, !tbaa !5
  call void @LAPACKE_xerbla(ptr noundef @.str, i32 noundef %256)
  br label %257

257:                                              ; preds = %255, %252
  %258 = load i32, ptr %60, align 4, !tbaa !5
  store i32 %258, ptr %30, align 4
  store i32 1, ptr %70, align 4
  br label %259

259:                                              ; preds = %257, %142, %133, %124, %115, %106, %97, %88, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %69) #5
  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 8, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #5
  %260 = load i32, ptr %30, align 4
  ret i32 %260
}

; 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_cge_nancheck(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) #2

declare i32 @LAPACKE_cgedmdq_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, i32 noundef, ptr noundef, ptr noundef, i32 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 = !{!"float", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [16 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @LAPACKE_cgedmdq(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, i32 noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef %24, ptr noundef %25, i32 noundef %26, ptr noundef %27, i32 noundef %28) local_unnamed_addr #0 {
  %30 = alloca { float, float }, align 4
  %31 = alloca float, align 4
  %32 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %30) #5
  call void @llvm.lifetime.start.p0(i64 4, 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 = %29
  tail call void @LAPACKE_xerbla(ptr noundef nonnull @.str, i32 noundef -1) #5
  br label %79

35:                                               ; preds = %29
  %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_cge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %10, i32 noundef %11) #5
  %.not123 = icmp eq i32 %38, 0
  br i1 %.not123, label %39, label %79

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

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

43:                                               ; preds = %41
  %44 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %20, i32 noundef %21) #5
  %.not126 = icmp eq i32 %44, 0
  br i1 %.not126, label %45, label %79

45:                                               ; preds = %43
  %46 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %23, i32 noundef %24) #5
  %.not127 = icmp eq i32 %46, 0
  br i1 %.not127, label %47, label %79

47:                                               ; preds = %45
  %48 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %25, i32 noundef %26) #5
  %.not128 = icmp eq i32 %48, 0
  br i1 %.not128, label %49, label %79

49:                                               ; preds = %47
  %50 = tail call i32 @LAPACKE_cge_nancheck(i32 noundef %0, i32 noundef %8, i32 noundef %9, ptr noundef %27, i32 noundef %28) #5
  %.not129 = icmp eq i32 %50, 0
  br i1 %.not129, label %51, label %79

51:                                               ; preds = %49, %35
  %52 = call i32 @LAPACKE_cgedmdq_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, i32 noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef %24, ptr noundef %25, i32 noundef %26, ptr noundef %27, i32 noundef %28, ptr noundef nonnull %30, i32 noundef -1, ptr noundef nonnull %31, i32 noundef -1, ptr noundef nonnull %32, i32 noundef -1) #5
  %.not130 = icmp eq i32 %52, 0
  br i1 %.not130, label %53, label %77

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

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

68:                                               ; preds = %63
  %69 = sext i32 %58 to i64
  %70 = shl nsw i64 %69, 2
  %71 = call noalias ptr @malloc(i64 noundef %70) #6
  %72 = icmp eq ptr %71, null
  br i1 %72, label %75, label %73

73:                                               ; preds = %68
  %74 = call i32 @LAPACKE_cgedmdq_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, i32 noundef %21, ptr noundef %22, ptr noundef %23, i32 noundef %24, ptr noundef %25, i32 noundef %26, ptr noundef %27, i32 noundef %28, ptr noundef nonnull %61, i32 noundef %55, ptr noundef nonnull %66, i32 noundef %57, ptr noundef nonnull %71, i32 noundef %58) #5
  call void @free(ptr noundef nonnull %71) #5
  br label %75

75:                                               ; preds = %68, %73
  %.0 = phi i32 [ %74, %73 ], [ -1010, %68 ]
  call void @free(ptr noundef nonnull %66) #5
  br label %76

76:                                               ; preds = %63, %75
  %.1 = phi i32 [ %.0, %75 ], [ -1010, %63 ]
  call void @free(ptr noundef nonnull %61) #5
  br label %77

77:                                               ; preds = %51, %76
  %.2 = phi i32 [ %52, %51 ], [ %.1, %76 ]
  %78 = icmp eq i32 %.2, -1010
  br i1 %78, label %.thread, label %79

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

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

; 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_cge_nancheck(i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare i32 @LAPACKE_cgedmdq_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, i32 noundef, ptr noundef, ptr noundef, i32 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 = !{!"float", !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