; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (geom_r)

; 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"

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@.str.18 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

declare void @qh_fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #2

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

declare void @qh_joggle_restart(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_gausselim(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %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 double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store double 0.000000e+00, ptr %19, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !9
  %26 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %26, align 4, !tbaa !9
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %246, %6
  %28 = load i32, ptr %23, align 4, !tbaa !9
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %31, label %249

31:                                               ; preds = %27
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = load i32, ptr %23, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds ptr, ptr %32, i64 %34
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = load i32, ptr %23, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %36, i64 %38
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = fcmp olt double %40, 0.000000e+00
  br i1 %41, label %42, label %53

42:                                               ; preds = %31
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load i32, ptr %23, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds ptr, ptr %43, i64 %45
  %47 = load ptr, ptr %46, align 8, !tbaa !5
  %48 = load i32, ptr %23, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %47, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !11
  %52 = fneg double %51
  br label %63

53:                                               ; preds = %31
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i32, ptr %23, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %54, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = load i32, ptr %23, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds double, ptr %58, i64 %60
  %62 = load double, ptr %61, align 8, !tbaa !11
  br label %63

63:                                               ; preds = %53, %42
  %64 = phi double [ %52, %42 ], [ %62, %53 ]
  store double %64, ptr %19, align 8, !tbaa !11
  %65 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %65, ptr %24, align 4, !tbaa !9
  %66 = load i32, ptr %23, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %21, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %112, %63
  %69 = load i32, ptr %21, align 4, !tbaa !9
  %70 = load i32, ptr %9, align 4, !tbaa !9
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %72, label %115

72:                                               ; preds = %68
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load i32, ptr %21, align 4, !tbaa !9
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds ptr, ptr %73, i64 %75
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = load i32, ptr %23, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds double, ptr %77, i64 %79
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = fcmp olt double %81, 0.000000e+00
  br i1 %82, label %83, label %94

83:                                               ; preds = %72
  %84 = load ptr, ptr %8, align 8, !tbaa !5
  %85 = load i32, ptr %21, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %84, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load i32, ptr %23, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %88, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !11
  %93 = fneg double %92
  br label %104

94:                                               ; preds = %72
  %95 = load ptr, ptr %8, align 8, !tbaa !5
  %96 = load i32, ptr %21, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds ptr, ptr %95, i64 %97
  %99 = load ptr, ptr %98, align 8, !tbaa !5
  %100 = load i32, ptr %23, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds double, ptr %99, i64 %101
  %103 = load double, ptr %102, align 8, !tbaa !11
  br label %104

104:                                              ; preds = %94, %83
  %105 = phi double [ %93, %83 ], [ %103, %94 ]
  store double %105, ptr %20, align 8, !tbaa !11
  %106 = load double, ptr %19, align 8, !tbaa !11
  %107 = fcmp ogt double %105, %106
  br i1 %107, label %108, label %111

108:                                              ; preds = %104
  %109 = load double, ptr %20, align 8, !tbaa !11
  store double %109, ptr %19, align 8, !tbaa !11
  %110 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %110, ptr %24, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %108, %104
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %21, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %21, align 4, !tbaa !9
  br label %68, !llvm.loop !13

115:                                              ; preds = %68
  %116 = load i32, ptr %24, align 4, !tbaa !9
  %117 = load i32, ptr %23, align 4, !tbaa !9
  %118 = icmp ne i32 %116, %117
  br i1 %118, label %119, label %144

119:                                              ; preds = %115
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  %121 = load i32, ptr %24, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds ptr, ptr %120, i64 %122
  %124 = load ptr, ptr %123, align 8, !tbaa !5
  store ptr %124, ptr %15, align 8, !tbaa !5
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load i32, ptr %23, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds ptr, ptr %125, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !5
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load i32, ptr %24, align 4, !tbaa !9
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds ptr, ptr %130, i64 %132
  store ptr %129, ptr %133, align 8, !tbaa !5
  %134 = load ptr, ptr %15, align 8, !tbaa !5
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = load i32, ptr %23, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds ptr, ptr %135, i64 %137
  store ptr %134, ptr %138, align 8, !tbaa !5
  %139 = load ptr, ptr %11, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = xor i32 %140, 1
  store i32 %141, ptr %139, align 4, !tbaa !9
  %142 = load i32, ptr %25, align 4, !tbaa !9
  %143 = xor i32 %142, 1
  store i32 %143, ptr %25, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %119, %115
  %145 = load double, ptr %19, align 8, !tbaa !11
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.qhT, ptr %146, i32 0, i32 145
  %148 = load ptr, ptr %147, align 8, !tbaa !15
  %149 = load i32, ptr %23, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds double, ptr %148, i64 %150
  %152 = load double, ptr %151, align 8, !tbaa !11
  %153 = fcmp ole double %145, %152
  br i1 %153, label %154, label %189

154:                                              ; preds = %144
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 1, ptr %155, align 4, !tbaa !9
  %156 = load double, ptr %19, align 8, !tbaa !11
  %157 = fcmp oeq double %156, 0.000000e+00
  br i1 %157, label %158, label %188

158:                                              ; preds = %154
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.qhT, ptr %159, i32 0, i32 29
  %161 = load i32, ptr %160, align 8, !tbaa !20
  %162 = icmp sge i32 %161, 4
  br i1 %162, label %163, label %180

163:                                              ; preds = %158
  %164 = load ptr, ptr %7, align 8, !tbaa !5
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.qhT, ptr %165, i32 0, i32 158
  %167 = load ptr, ptr %166, align 8, !tbaa !21
  %168 = load i32, ptr %23, align 4, !tbaa !9
  %169 = load double, ptr %19, align 8, !tbaa !11
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.qhT, ptr %170, i32 0, i32 134
  %172 = load double, ptr %171, align 8, !tbaa !22
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %164, ptr noundef %167, i32 noundef 8011, ptr noundef @.str.18, i32 noundef %168, double noundef %169, double noundef %172)
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.qhT, ptr %174, i32 0, i32 158
  %176 = load ptr, ptr %175, align 8, !tbaa !21
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = load i32, ptr %9, align 4, !tbaa !9
  %179 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printmatrix(ptr noundef %173, ptr noundef %176, ptr noundef @.str.19, ptr noundef %177, i32 noundef %178, i32 noundef %179)
  br label %180

180:                                              ; preds = %163, %158
  %181 = load ptr, ptr %7, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.qhT, ptr %181, i32 0, i32 258
  %183 = getelementptr inbounds %struct.qhstatT, ptr %182, i32 0, i32 0
  %184 = getelementptr inbounds [249 x %union.intrealT], ptr %183, i64 0, i64 104
  %185 = load i32, ptr %184, align 8, !tbaa !23
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %184, align 8, !tbaa !23
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_joggle_restart(ptr noundef %187, ptr noundef @.str.20)
  br label %245

188:                                              ; preds = %154
  br label %189

189:                                              ; preds = %188, %144
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = load i32, ptr %23, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds ptr, ptr %190, i64 %192
  %194 = load ptr, ptr %193, align 8, !tbaa !5
  %195 = load i32, ptr %23, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds double, ptr %194, i64 %196
  store ptr %197, ptr %16, align 8, !tbaa !5
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = getelementptr inbounds double, ptr %198, i32 1
  store ptr %199, ptr %16, align 8, !tbaa !5
  %200 = load double, ptr %198, align 8, !tbaa !11
  store double %200, ptr %18, align 8, !tbaa !11
  %201 = load i32, ptr %23, align 4, !tbaa !9
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %21, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %241, %189
  %204 = load i32, ptr %21, align 4, !tbaa !9
  %205 = load i32, ptr %9, align 4, !tbaa !9
  %206 = icmp slt i32 %204, %205
  br i1 %206, label %207, label %244

207:                                              ; preds = %203
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = load i32, ptr %21, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds ptr, ptr %208, i64 %210
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  %213 = load i32, ptr %23, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  store ptr %215, ptr %13, align 8, !tbaa !5
  %216 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %216, ptr %14, align 8, !tbaa !5
  %217 = load ptr, ptr %13, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i32 1
  store ptr %218, ptr %13, align 8, !tbaa !5
  %219 = load double, ptr %217, align 8, !tbaa !11
  %220 = load double, ptr %18, align 8, !tbaa !11
  %221 = fdiv double %219, %220
  store double %221, ptr %17, align 8, !tbaa !11
  %222 = load i32, ptr %10, align 4, !tbaa !9
  %223 = load i32, ptr %23, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  %225 = sub nsw i32 %222, %224
  store i32 %225, ptr %22, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %230, %207
  %227 = load i32, ptr %22, align 4, !tbaa !9
  %228 = add nsw i32 %227, -1
  store i32 %228, ptr %22, align 4, !tbaa !9
  %229 = icmp ne i32 %227, 0
  br i1 %229, label %230, label %240

230:                                              ; preds = %226
  %231 = load double, ptr %17, align 8, !tbaa !11
  %232 = load ptr, ptr %14, align 8, !tbaa !5
  %233 = getelementptr inbounds double, ptr %232, i32 1
  store ptr %233, ptr %14, align 8, !tbaa !5
  %234 = load double, ptr %232, align 8, !tbaa !11
  %235 = load ptr, ptr %13, align 8, !tbaa !5
  %236 = getelementptr inbounds double, ptr %235, i32 1
  store ptr %236, ptr %13, align 8, !tbaa !5
  %237 = load double, ptr %235, align 8, !tbaa !11
  %238 = fneg double %231
  %239 = call double @llvm.fmuladd.f64(double %238, double %234, double %237)
  store double %239, ptr %235, align 8, !tbaa !11
  br label %226, !llvm.loop !24

240:                                              ; preds = %226
  br label %241

241:                                              ; preds = %240
  %242 = load i32, ptr %21, align 4, !tbaa !9
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %21, align 4, !tbaa !9
  br label %203, !llvm.loop !25

244:                                              ; preds = %203
  br label %245

245:                                              ; preds = %244, %180
  br label %246

246:                                              ; preds = %245
  %247 = load i32, ptr %23, align 4, !tbaa !9
  %248 = add nsw i32 %247, 1
  store i32 %248, ptr %23, align 4, !tbaa !9
  br label %27, !llvm.loop !26

249:                                              ; preds = %27
  %250 = load ptr, ptr %7, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.qhT, ptr %250, i32 0, i32 258
  %252 = getelementptr inbounds %struct.qhstatT, ptr %251, i32 0, i32 0
  %253 = getelementptr inbounds [249 x %union.intrealT], ptr %252, i64 0, i64 140
  %254 = load double, ptr %253, align 8, !tbaa !23
  %255 = load double, ptr %19, align 8, !tbaa !11
  %256 = fcmp ogt double %254, %255
  br i1 %256, label %257, label %263

257:                                              ; preds = %249
  %258 = load double, ptr %19, align 8, !tbaa !11
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.qhT, ptr %259, i32 0, i32 258
  %261 = getelementptr inbounds %struct.qhstatT, ptr %260, i32 0, i32 0
  %262 = getelementptr inbounds [249 x %union.intrealT], ptr %261, i64 0, i64 140
  store double %258, ptr %262, align 8, !tbaa !23
  br label %263

263:                                              ; preds = %257, %249
  %264 = load ptr, ptr %7, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.qhT, ptr %264, i32 0, i32 29
  %266 = load i32, ptr %265, align 8, !tbaa !20
  %267 = icmp sge i32 %266, 5
  br i1 %267, label %268, label %276

268:                                              ; preds = %263
  %269 = load ptr, ptr %7, align 8, !tbaa !5
  %270 = load ptr, ptr %7, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.qhT, ptr %270, i32 0, i32 158
  %272 = load ptr, ptr %271, align 8, !tbaa !21
  %273 = load ptr, ptr %8, align 8, !tbaa !5
  %274 = load i32, ptr %9, align 4, !tbaa !9
  %275 = load i32, ptr %10, align 4, !tbaa !9
  call void @qh_printmatrix(ptr noundef %269, ptr noundef %272, ptr noundef @.str.21, ptr noundef %273, i32 noundef %274, i32 noundef %275)
  br label %276

276:                                              ; preds = %268, %263
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 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 #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"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 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 1872}
!16 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !12, i64 64, !12, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !12, i64 160, !12, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !12, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !12, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !7, i64 300, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !12, i64 448, !12, i64 456, !12, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !10, i64 544, !12, i64 552, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !12, i64 592, !10, i64 600, !6, i64 608, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !6, i64 648, !10, i64 656, !6, i64 664, !10, i64 672, !7, i64 676, !10, i64 932, !7, i64 936, !7, i64 1192, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !10, i64 1720, !10, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !10, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !10, i64 2440, !10, i64 2444, !10, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !10, i64 2496, !10, i64 2500, !6, i64 2504, !10, i64 2512, !6, i64 2520, !10, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !10, i64 2568, !10, i64 2572, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !10, i64 2592, !10, i64 2596, !17, i64 2600, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !6, i64 2632, !6, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !12, i64 2664, !10, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !12, i64 2728, !12, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !12, i64 2768, !12, i64 2776, !10, i64 2784, !10, i64 2788, !10, i64 2792, !10, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !10, i64 2872, !6, i64 2880, !6, i64 2888, !10, i64 2896, !10, i64 2900, !10, i64 2904, !6, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !12, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !18, i64 3272, !19, i64 3424}
!17 = !{!"long", !7, i64 0}
!18 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!19 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !12, i64 5336}
!20 = !{!16, !10, i64 136}
!21 = !{!16, !6, i64 2424}
!22 = !{!16, !12, i64 1784}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !14}
!25 = distinct !{!25, !14}
!26 = distinct !{!26, !14}


; 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.18 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #0

declare void @qh_fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

declare void @qh_joggle_restart(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_gausselim(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #2 {
  store i32 0, ptr %5, align 4, !tbaa !5
  %7 = icmp sgt i32 %2, 0
  br i1 %7, label %.lr.ph126, label %._crit_edge127

.lr.ph126:                                        ; preds = %6
  %8 = getelementptr inbounds i8, ptr %0, i64 1872
  %9 = getelementptr inbounds i8, ptr %0, i64 136
  %10 = getelementptr inbounds i8, ptr %0, i64 2424
  %11 = getelementptr inbounds i8, ptr %0, i64 1784
  %12 = getelementptr inbounds i8, ptr %0, i64 4256
  %13 = zext nneg i32 %2 to i64
  %wide.trip.count141 = zext nneg i32 %2 to i64
  %14 = add i32 %3, -2
  br label %15

15:                                               ; preds = %.lr.ph126, %.loopexit
  %indvars.iv138 = phi i64 [ 0, %.lr.ph126 ], [ %indvars.iv.next139, %.loopexit ]
  %indvars.iv = phi i64 [ 1, %.lr.ph126 ], [ %indvars.iv.next, %.loopexit ]
  %16 = trunc i64 %indvars.iv138 to i32
  %17 = xor i32 %16, -1
  %18 = add i32 %17, %3
  %19 = zext i32 %18 to i64
  %20 = shl nuw nsw i64 %indvars.iv138, 3
  %21 = add nuw i64 %20, 8
  %22 = add nuw i64 %20, 16
  %23 = trunc i64 %indvars.iv138 to i32
  %24 = sub i32 %14, %23
  %25 = zext i32 %24 to i64
  %26 = shl nuw nsw i64 %25, 3
  %27 = add i64 %22, %26
  %28 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv138
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds double, ptr %29, i64 %indvars.iv138
  %31 = load double, ptr %30, align 8, !tbaa !11
  %32 = fcmp olt double %31, 0.000000e+00
  %33 = fneg double %31
  %34 = select i1 %32, double %33, double %31
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %35 = icmp ult i64 %indvars.iv.next139, %13
  %36 = trunc nuw nsw i64 %indvars.iv138 to i32
  br i1 %35, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %15, %.lr.ph
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %.lr.ph ], [ %indvars.iv, %15 ]
  %.090111 = phi i32 [ %.191, %.lr.ph ], [ %36, %15 ]
  %.198109 = phi double [ %.2, %.lr.ph ], [ %34, %15 ]
  %37 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv130
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = getelementptr inbounds double, ptr %38, i64 %indvars.iv138
  %40 = load double, ptr %39, align 8, !tbaa !11
  %41 = fcmp olt double %40, 0.000000e+00
  %42 = fneg double %40
  %43 = select i1 %41, double %42, double %40
  %44 = fcmp ogt double %43, %.198109
  %.2 = select i1 %44, double %43, double %.198109
  %45 = trunc nuw nsw i64 %indvars.iv130 to i32
  %.191 = select i1 %44, i32 %45, i32 %.090111
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next131, %wide.trip.count141
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %15
  %.198.lcssa = phi double [ %34, %15 ], [ %.2, %.lr.ph ]
  %.090.lcssa = phi i32 [ %36, %15 ], [ %.191, %.lr.ph ]
  %46 = zext i32 %.090.lcssa to i64
  %.not = icmp eq i64 %indvars.iv138, %46
  br i1 %.not, label %53, label %47

47:                                               ; preds = %._crit_edge
  %48 = sext i32 %.090.lcssa to i64
  %49 = getelementptr inbounds ptr, ptr %1, i64 %48
  %50 = load ptr, ptr %49, align 8, !tbaa !9
  store ptr %29, ptr %49, align 8, !tbaa !9
  store ptr %50, ptr %28, align 8, !tbaa !9
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = xor i32 %51, 1
  store i32 %52, ptr %4, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %47, %._crit_edge
  %54 = phi ptr [ %50, %47 ], [ %29, %._crit_edge ]
  %55 = load ptr, ptr %8, align 8, !tbaa !15
  %56 = getelementptr inbounds double, ptr %55, i64 %indvars.iv138
  %57 = load double, ptr %56, align 8, !tbaa !11
  %58 = fcmp ugt double %.198.lcssa, %57
  br i1 %58, label %71, label %59

59:                                               ; preds = %53
  store i32 1, ptr %5, align 4, !tbaa !5
  %60 = fcmp oeq double %.198.lcssa, 0.000000e+00
  br i1 %60, label %61, label %71

61:                                               ; preds = %59
  %62 = load i32, ptr %9, align 8, !tbaa !20
  %63 = icmp sgt i32 %62, 3
  br i1 %63, label %64, label %68

64:                                               ; preds = %61
  %65 = load ptr, ptr %10, align 8, !tbaa !21
  %66 = load double, ptr %11, align 8, !tbaa !22
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %65, i32 noundef 8011, ptr noundef nonnull @.str.18, i32 noundef %36, double noundef %.198.lcssa, double noundef %66) #4
  %67 = load ptr, ptr %10, align 8, !tbaa !21
  tail call void @qh_printmatrix(ptr noundef nonnull %0, ptr noundef %67, ptr noundef nonnull @.str.19, ptr noundef nonnull %1, i32 noundef %2, i32 noundef %3) #4
  br label %68

68:                                               ; preds = %64, %61
  %69 = load i32, ptr %12, align 8, !tbaa !23
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %12, align 8, !tbaa !23
  tail call void @qh_joggle_restart(ptr noundef nonnull %0, ptr noundef nonnull @.str.20) #4
  br label %.loopexit

71:                                               ; preds = %59, %53
  %72 = getelementptr inbounds double, ptr %54, i64 %indvars.iv138
  %73 = load double, ptr %72, align 8, !tbaa !11
  br i1 %35, label %.lr.ph122, label %.loopexit

.lr.ph122:                                        ; preds = %71
  %74 = trunc i64 %indvars.iv.next139 to i32
  %75 = sub i32 %3, %74
  %.not107113 = icmp eq i32 %75, 0
  br i1 %.not107113, label %.loopexit, label %.lr.ph118.preheader

.lr.ph118.preheader:                              ; preds = %.lr.ph122
  %scevgep144 = getelementptr i8, ptr %54, i64 %21
  %scevgep145 = getelementptr i8, ptr %54, i64 %27
  %min.iters.check = icmp ult i32 %18, 4
  %n.vec = and i64 %19, 4294967292
  %.cast = trunc nuw i64 %n.vec to i32
  %ind.end = sub i32 %75, %.cast
  %76 = shl nuw nsw i64 %n.vec, 3
  %77 = shl nuw nsw i64 %n.vec, 3
  %ind.end148 = getelementptr i8, ptr %72, i64 %77
  %cmp.n = icmp eq i64 %n.vec, %19
  br label %.lr.ph118

.lr.ph118:                                        ; preds = %.lr.ph118.preheader, %._crit_edge119
  %indvars.iv133 = phi i64 [ %indvars.iv.next134, %._crit_edge119 ], [ %indvars.iv, %.lr.ph118.preheader ]
  %78 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv133
  %79 = load ptr, ptr %78, align 8, !tbaa !9
  %80 = getelementptr inbounds double, ptr %79, i64 %indvars.iv138
  %81 = load double, ptr %80, align 8, !tbaa !11
  %82 = fneg double %81
  %83 = fdiv double %82, %73
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph118
  %scevgep = getelementptr i8, ptr %79, i64 %21
  %scevgep143 = getelementptr i8, ptr %79, i64 %27
  %bound0 = icmp ult ptr %scevgep, %scevgep145
  %bound1 = icmp ult ptr %scevgep144, %scevgep143
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %ind.end146 = getelementptr i8, ptr %80, i64 %76
  %broadcast.splatinsert = insertelement <2 x double> poison, double %83, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 3
  %next.gep = getelementptr i8, ptr %80, i64 %offset.idx
  %offset.idx151 = shl i64 %index, 3
  %next.gep152 = getelementptr i8, ptr %72, i64 %offset.idx151
  %84 = getelementptr inbounds i8, ptr %next.gep, i64 8
  %85 = getelementptr inbounds i8, ptr %next.gep152, i64 8
  %86 = getelementptr inbounds i8, ptr %next.gep152, i64 24
  %wide.load = load <2 x double>, ptr %85, align 8, !tbaa !11, !alias.scope !24
  %wide.load154 = load <2 x double>, ptr %86, align 8, !tbaa !11, !alias.scope !24
  %87 = getelementptr inbounds i8, ptr %next.gep, i64 24
  %wide.load155 = load <2 x double>, ptr %84, align 8, !tbaa !11, !alias.scope !27, !noalias !24
  %wide.load156 = load <2 x double>, ptr %87, align 8, !tbaa !11, !alias.scope !27, !noalias !24
  %88 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load, <2 x double> %wide.load155)
  %89 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load154, <2 x double> %wide.load156)
  store <2 x double> %88, ptr %84, align 8, !tbaa !11, !alias.scope !27, !noalias !24
  store <2 x double> %89, ptr %87, align 8, !tbaa !11, !alias.scope !27, !noalias !24
  %index.next = add nuw i64 %index, 4
  %90 = icmp eq i64 %index.next, %n.vec
  br i1 %90, label %middle.block, label %vector.body, !llvm.loop !29

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge119, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph118
  %.093116.ph = phi i32 [ %75, %vector.memcheck ], [ %75, %.lr.ph118 ], [ %ind.end, %middle.block ]
  %.pn108115.ph = phi ptr [ %80, %vector.memcheck ], [ %80, %.lr.ph118 ], [ %ind.end146, %middle.block ]
  %.pn114.ph = phi ptr [ %72, %vector.memcheck ], [ %72, %.lr.ph118 ], [ %ind.end148, %middle.block ]
  %91 = add nsw i32 %.093116.ph, -1
  %xtraiter = and i32 %.093116.ph, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.093116.prol = phi i32 [ %92, %scalar.ph.prol ], [ %.093116.ph, %scalar.ph.preheader ]
  %.pn108115.prol = phi ptr [ %.096.prol, %scalar.ph.prol ], [ %.pn108115.ph, %scalar.ph.preheader ]
  %.pn114.prol = phi ptr [ %.099.prol, %scalar.ph.prol ], [ %.pn114.ph, %scalar.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %.096.prol = getelementptr inbounds i8, ptr %.pn108115.prol, i64 8
  %.099.prol = getelementptr inbounds i8, ptr %.pn114.prol, i64 8
  %92 = add nsw i32 %.093116.prol, -1
  %93 = load double, ptr %.099.prol, align 8, !tbaa !11
  %94 = load double, ptr %.096.prol, align 8, !tbaa !11
  %95 = tail call double @llvm.fmuladd.f64(double %83, double %93, double %94)
  store double %95, ptr %.096.prol, align 8, !tbaa !11
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !32

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.093116.unr = phi i32 [ %.093116.ph, %scalar.ph.preheader ], [ %92, %scalar.ph.prol ]
  %.pn108115.unr = phi ptr [ %.pn108115.ph, %scalar.ph.preheader ], [ %.096.prol, %scalar.ph.prol ]
  %.pn114.unr = phi ptr [ %.pn114.ph, %scalar.ph.preheader ], [ %.099.prol, %scalar.ph.prol ]
  %96 = icmp ult i32 %91, 3
  br i1 %96, label %._crit_edge119, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.093116 = phi i32 [ %106, %scalar.ph ], [ %.093116.unr, %scalar.ph.prol.loopexit ]
  %.pn108115 = phi ptr [ %.096.3, %scalar.ph ], [ %.pn108115.unr, %scalar.ph.prol.loopexit ]
  %.pn114 = phi ptr [ %.099.3, %scalar.ph ], [ %.pn114.unr, %scalar.ph.prol.loopexit ]
  %.096 = getelementptr inbounds i8, ptr %.pn108115, i64 8
  %.099 = getelementptr inbounds i8, ptr %.pn114, i64 8
  %97 = load double, ptr %.099, align 8, !tbaa !11
  %98 = load double, ptr %.096, align 8, !tbaa !11
  %99 = tail call double @llvm.fmuladd.f64(double %83, double %97, double %98)
  store double %99, ptr %.096, align 8, !tbaa !11
  %.096.1 = getelementptr inbounds i8, ptr %.pn108115, i64 16
  %.099.1 = getelementptr inbounds i8, ptr %.pn114, i64 16
  %100 = load double, ptr %.099.1, align 8, !tbaa !11
  %101 = load double, ptr %.096.1, align 8, !tbaa !11
  %102 = tail call double @llvm.fmuladd.f64(double %83, double %100, double %101)
  store double %102, ptr %.096.1, align 8, !tbaa !11
  %.096.2 = getelementptr inbounds i8, ptr %.pn108115, i64 24
  %.099.2 = getelementptr inbounds i8, ptr %.pn114, i64 24
  %103 = load double, ptr %.099.2, align 8, !tbaa !11
  %104 = load double, ptr %.096.2, align 8, !tbaa !11
  %105 = tail call double @llvm.fmuladd.f64(double %83, double %103, double %104)
  store double %105, ptr %.096.2, align 8, !tbaa !11
  %.096.3 = getelementptr inbounds i8, ptr %.pn108115, i64 32
  %.099.3 = getelementptr inbounds i8, ptr %.pn114, i64 32
  %106 = add nsw i32 %.093116, -4
  %107 = load double, ptr %.099.3, align 8, !tbaa !11
  %108 = load double, ptr %.096.3, align 8, !tbaa !11
  %109 = tail call double @llvm.fmuladd.f64(double %83, double %107, double %108)
  store double %109, ptr %.096.3, align 8, !tbaa !11
  %.not107.3 = icmp eq i32 %106, 0
  br i1 %.not107.3, label %._crit_edge119, label %scalar.ph, !llvm.loop !34

._crit_edge119:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %exitcond137.not = icmp eq i64 %indvars.iv.next134, %wide.trip.count141
  br i1 %exitcond137.not, label %.loopexit, label %.lr.ph118, !llvm.loop !35

.loopexit:                                        ; preds = %._crit_edge119, %.lr.ph122, %71, %68
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %._crit_edge127, label %15, !llvm.loop !36

._crit_edge127:                                   ; preds = %.loopexit, %6
  %.097.lcssa = phi double [ 0.000000e+00, %6 ], [ %.198.lcssa, %.loopexit ]
  %110 = getelementptr inbounds i8, ptr %0, i64 4544
  %111 = load double, ptr %110, align 8, !tbaa !23
  %112 = fcmp ogt double %111, %.097.lcssa
  br i1 %112, label %113, label %114

113:                                              ; preds = %._crit_edge127
  store double %.097.lcssa, ptr %110, align 8, !tbaa !23
  br label %114

114:                                              ; preds = %113, %._crit_edge127
  %115 = getelementptr inbounds i8, ptr %0, i64 136
  %116 = load i32, ptr %115, align 8, !tbaa !20
  %117 = icmp sgt i32 %116, 4
  br i1 %117, label %118, label %121

118:                                              ; preds = %114
  %119 = getelementptr inbounds i8, ptr %0, i64 2424
  %120 = load ptr, ptr %119, align 8, !tbaa !21
  tail call void @qh_printmatrix(ptr noundef nonnull %0, ptr noundef %120, ptr noundef nonnull @.str.21, ptr noundef %1, i32 noundef %2, i32 noundef %3) #4
  br label %121

121:                                              ; preds = %118, %114
  ret void
}

declare void @qh_printmatrix(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { "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 #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !10, i64 1872}
!16 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !12, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !12, i64 64, !12, i64 72, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !10, i64 104, !6, i64 112, !6, i64 116, !10, i64 120, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !6, i64 148, !6, i64 152, !12, i64 160, !12, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !12, i64 192, !12, i64 200, !6, i64 208, !6, i64 212, !12, i64 216, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236, !6, i64 240, !6, i64 244, !6, i64 248, !6, i64 252, !6, i64 256, !6, i64 260, !6, i64 264, !6, i64 268, !6, i64 272, !6, i64 276, !6, i64 280, !6, i64 284, !6, i64 288, !6, i64 292, !6, i64 296, !7, i64 300, !6, i64 416, !6, i64 420, !6, i64 424, !6, i64 428, !6, i64 432, !6, i64 436, !6, i64 440, !6, i64 444, !12, i64 448, !12, i64 456, !12, i64 464, !6, i64 472, !6, i64 476, !6, i64 480, !6, i64 484, !6, i64 488, !6, i64 492, !6, i64 496, !6, i64 500, !6, i64 504, !6, i64 508, !6, i64 512, !6, i64 516, !6, i64 520, !6, i64 524, !6, i64 528, !6, i64 532, !6, i64 536, !6, i64 540, !6, i64 544, !12, i64 552, !6, i64 560, !6, i64 564, !6, i64 568, !6, i64 572, !6, i64 576, !6, i64 580, !6, i64 584, !6, i64 588, !12, i64 592, !6, i64 600, !10, i64 608, !10, i64 616, !6, i64 624, !6, i64 628, !6, i64 632, !6, i64 636, !6, i64 640, !10, i64 648, !6, i64 656, !10, i64 664, !6, i64 672, !7, i64 676, !6, i64 932, !7, i64 936, !7, i64 1192, !6, i64 1704, !6, i64 1708, !6, i64 1712, !6, i64 1716, !6, i64 1720, !6, i64 1724, !10, i64 1728, !10, i64 1736, !10, i64 1744, !10, i64 1752, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !10, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !6, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !10, i64 2408, !10, i64 2416, !10, i64 2424, !10, i64 2432, !6, i64 2440, !6, i64 2444, !6, i64 2448, !10, i64 2456, !10, i64 2464, !10, i64 2472, !10, i64 2480, !10, i64 2488, !6, i64 2496, !6, i64 2500, !10, i64 2504, !6, i64 2512, !10, i64 2520, !6, i64 2528, !10, i64 2536, !10, i64 2544, !10, i64 2552, !10, i64 2560, !6, i64 2568, !6, i64 2572, !6, i64 2576, !6, i64 2580, !6, i64 2584, !6, i64 2588, !6, i64 2592, !6, i64 2596, !17, i64 2600, !6, i64 2608, !6, i64 2612, !6, i64 2616, !6, i64 2620, !6, i64 2624, !10, i64 2632, !10, i64 2640, !6, i64 2648, !6, i64 2652, !6, i64 2656, !12, i64 2664, !6, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !6, i64 2704, !6, i64 2708, !6, i64 2712, !6, i64 2716, !6, i64 2720, !12, i64 2728, !12, i64 2736, !6, i64 2744, !6, i64 2748, !6, i64 2752, !6, i64 2756, !6, i64 2760, !6, i64 2764, !12, i64 2768, !12, i64 2776, !6, i64 2784, !6, i64 2788, !6, i64 2792, !6, i64 2796, !10, i64 2800, !10, i64 2808, !10, i64 2816, !10, i64 2824, !10, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !10, i64 2864, !6, i64 2872, !10, i64 2880, !10, i64 2888, !6, i64 2896, !6, i64 2900, !6, i64 2904, !10, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !6, i64 2952, !6, i64 2956, !6, i64 2960, !6, i64 2964, !6, i64 2968, !6, i64 2972, !10, i64 2976, !6, i64 2984, !6, i64 2988, !7, i64 2992, !7, i64 3192, !6, i64 3232, !12, i64 3240, !10, i64 3248, !10, i64 3256, !10, i64 3264, !18, i64 3272, !19, i64 3424}
!17 = !{!"long", !7, i64 0}
!18 = !{!"qhmemT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !6, i64 64, !10, i64 72, !10, i64 80, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144}
!19 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !6, i64 5320, !6, i64 5324, !6, i64 5328, !6, i64 5332, !12, i64 5336}
!20 = !{!16, !6, i64 136}
!21 = !{!16, !10, i64 2424}
!22 = !{!16, !12, i64 1784}
!23 = !{!7, !7, i64 0}
!24 = !{!25}
!25 = distinct !{!25, !26}
!26 = distinct !{!26, !"LVerDomain"}
!27 = !{!28}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !14, !30, !31}
!30 = !{!"llvm.loop.isvectorized", i32 1}
!31 = !{!"llvm.loop.unroll.runtime.disable"}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.unroll.disable"}
!34 = distinct !{!34, !14, !30}
!35 = distinct !{!35, !14}
!36 = distinct !{!36, !14}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass