; LLVM IR from attractivechaos/klib :: khmm (hmm_backward)

; 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.hmm_data_t = type { i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.hmm_par_t = type { i32, i32, ptr, ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__.hmm_backward = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@stderr = external global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [39 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @calloc2(i32 noundef, i32 noundef, i32 noundef) #2

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @hmm_backward(ptr noundef %0, ptr noundef %1) #5 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %21

17:                                               ; preds = %2
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %21

20:                                               ; preds = %17
  br label %22

21:                                               ; preds = %17, %2
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 215, ptr noundef @__PRETTY_FUNCTION__.hmm_backward) #7
  unreachable

22:                                               ; preds = %20
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.hmm_data_t, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = and i32 %25, 2
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %22
  br label %30

29:                                               ; preds = %22
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 216, ptr noundef @__PRETTY_FUNCTION__.hmm_backward) #7
  unreachable

30:                                               ; preds = %28
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.hmm_par_t, ptr %31, i32 0, i32 0
  %33 = load i32, ptr %32, align 8, !tbaa !12
  store i32 %33, ptr %9, align 4, !tbaa !14
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.hmm_par_t, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 4, !tbaa !15
  store i32 %36, ptr %10, align 4, !tbaa !14
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.hmm_data_t, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !16
  store i32 %39, ptr %11, align 4, !tbaa !14
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.hmm_data_t, ptr %40, i32 0, i32 4
  %42 = load ptr, ptr %41, align 8, !tbaa !17
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %66

44:                                               ; preds = %30
  store i32 0, ptr %6, align 4, !tbaa !14
  br label %45

45:                                               ; preds = %59, %44
  %46 = load i32, ptr %6, align 4, !tbaa !14
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.hmm_data_t, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !16
  %50 = icmp sle i32 %46, %49
  br i1 %50, label %51, label %62

51:                                               ; preds = %45
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.hmm_data_t, ptr %52, i32 0, i32 4
  %54 = load ptr, ptr %53, align 8, !tbaa !17
  %55 = load i32, ptr %6, align 4, !tbaa !14
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds ptr, ptr %54, i64 %56
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  call void @free(ptr noundef %58) #6
  br label %59

59:                                               ; preds = %51
  %60 = load i32, ptr %6, align 4, !tbaa !14
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %6, align 4, !tbaa !14
  br label %45, !llvm.loop !18

62:                                               ; preds = %45
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.hmm_data_t, ptr %63, i32 0, i32 4
  %65 = load ptr, ptr %64, align 8, !tbaa !17
  call void @free(ptr noundef %65) #6
  br label %66

66:                                               ; preds = %62, %30
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.hmm_data_t, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = and i32 %69, -5
  store i32 %70, ptr %68, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !14
  %72 = add nsw i32 %71, 1
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.hmm_par_t, ptr %73, i32 0, i32 1
  %75 = load i32, ptr %74, align 4, !tbaa !15
  %76 = call ptr @calloc2(i32 noundef %72, i32 noundef %75, i32 noundef 8)
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.hmm_data_t, ptr %77, i32 0, i32 4
  store ptr %76, ptr %78, align 8, !tbaa !17
  store i32 0, ptr %6, align 4, !tbaa !14
  br label %79

79:                                               ; preds = %104, %66
  %80 = load i32, ptr %6, align 4, !tbaa !14
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.hmm_par_t, ptr %81, i32 0, i32 1
  %83 = load i32, ptr %82, align 4, !tbaa !15
  %84 = icmp ne i32 %80, %83
  br i1 %84, label %85, label %107

85:                                               ; preds = %79
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.hmm_data_t, ptr %86, i32 0, i32 5
  %88 = load ptr, ptr %87, align 8, !tbaa !20
  %89 = load i32, ptr %11, align 4, !tbaa !14
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds double, ptr %88, i64 %90
  %92 = load double, ptr %91, align 8, !tbaa !21
  %93 = fdiv double 1.000000e+00, %92
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.hmm_data_t, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !17
  %97 = load i32, ptr %11, align 4, !tbaa !14
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds ptr, ptr %96, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load i32, ptr %6, align 4, !tbaa !14
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  store double %93, ptr %103, align 8, !tbaa !21
  br label %104

104:                                              ; preds = %85
  %105 = load i32, ptr %6, align 4, !tbaa !14
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %6, align 4, !tbaa !14
  br label %79, !llvm.loop !23

107:                                              ; preds = %79
  %108 = load i32, ptr %11, align 4, !tbaa !14
  %109 = sub nsw i32 %108, 1
  store i32 %109, ptr %8, align 4, !tbaa !14
  br label %110

110:                                              ; preds = %192, %107
  %111 = load i32, ptr %8, align 4, !tbaa !14
  %112 = icmp sge i32 %111, 1
  br i1 %112, label %113, label %195

113:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.hmm_data_t, ptr %114, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !17
  %117 = load i32, ptr %8, align 4, !tbaa !14
  %118 = add nsw i32 %117, 1
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds ptr, ptr %116, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  store ptr %121, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.hmm_par_t, ptr %122, i32 0, i32 4
  %124 = load ptr, ptr %123, align 8, !tbaa !24
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.hmm_data_t, ptr %125, i32 0, i32 2
  %127 = load ptr, ptr %126, align 8, !tbaa !25
  %128 = load i32, ptr %8, align 4, !tbaa !14
  %129 = add nsw i32 %128, 1
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i8, ptr %127, i64 %130
  %132 = load i8, ptr %131, align 1, !tbaa !26
  %133 = sext i8 %132 to i32
  %134 = load i32, ptr %10, align 4, !tbaa !14
  %135 = mul nsw i32 %133, %134
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds ptr, ptr %124, i64 %136
  store ptr %137, ptr %13, align 8, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !14
  br label %138

138:                                              ; preds = %188, %113
  %139 = load i32, ptr %6, align 4, !tbaa !14
  %140 = load i32, ptr %10, align 4, !tbaa !14
  %141 = icmp ne i32 %139, %140
  br i1 %141, label %142, label %191

142:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = load i32, ptr %6, align 4, !tbaa !14
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds ptr, ptr %143, i64 %145
  %147 = load ptr, ptr %146, align 8, !tbaa !5
  store ptr %147, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !14
  store double 0.000000e+00, ptr %5, align 8, !tbaa !21
  br label %148

148:                                              ; preds = %165, %142
  %149 = load i32, ptr %7, align 4, !tbaa !14
  %150 = load i32, ptr %10, align 4, !tbaa !14
  %151 = icmp ne i32 %149, %150
  br i1 %151, label %152, label %168

152:                                              ; preds = %148
  %153 = load ptr, ptr %14, align 8, !tbaa !5
  %154 = load i32, ptr %7, align 4, !tbaa !14
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds double, ptr %153, i64 %155
  %157 = load double, ptr %156, align 8, !tbaa !21
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  %159 = load i32, ptr %7, align 4, !tbaa !14
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds double, ptr %158, i64 %160
  %162 = load double, ptr %161, align 8, !tbaa !21
  %163 = load double, ptr %5, align 8, !tbaa !21
  %164 = call double @llvm.fmuladd.f64(double %157, double %162, double %163)
  store double %164, ptr %5, align 8, !tbaa !21
  br label %165

165:                                              ; preds = %152
  %166 = load i32, ptr %7, align 4, !tbaa !14
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %7, align 4, !tbaa !14
  br label %148, !llvm.loop !27

168:                                              ; preds = %148
  %169 = load double, ptr %5, align 8, !tbaa !21
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.hmm_data_t, ptr %170, i32 0, i32 5
  %172 = load ptr, ptr %171, align 8, !tbaa !20
  %173 = load i32, ptr %8, align 4, !tbaa !14
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds double, ptr %172, i64 %174
  %176 = load double, ptr %175, align 8, !tbaa !21
  %177 = fdiv double %169, %176
  %178 = load ptr, ptr %4, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.hmm_data_t, ptr %178, i32 0, i32 4
  %180 = load ptr, ptr %179, align 8, !tbaa !17
  %181 = load i32, ptr %8, align 4, !tbaa !14
  %182 = sext i32 %181 to i64
  %183 = getelementptr inbounds ptr, ptr %180, i64 %182
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  %185 = load i32, ptr %6, align 4, !tbaa !14
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds double, ptr %184, i64 %186
  store double %177, ptr %187, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %188

188:                                              ; preds = %168
  %189 = load i32, ptr %6, align 4, !tbaa !14
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %6, align 4, !tbaa !14
  br label %138, !llvm.loop !28

191:                                              ; preds = %138
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %8, align 4, !tbaa !14
  %194 = add nsw i32 %193, -1
  store i32 %194, ptr %8, align 4, !tbaa !14
  br label %110, !llvm.loop !29

195:                                              ; preds = %110
  %196 = load ptr, ptr %4, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.hmm_data_t, ptr %196, i32 0, i32 1
  %198 = load i32, ptr %197, align 4, !tbaa !9
  %199 = or i32 %198, 4
  store i32 %199, ptr %197, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !14
  store double 0.000000e+00, ptr %5, align 8, !tbaa !21
  br label %200

200:                                              ; preds = %240, %195
  %201 = load i32, ptr %7, align 4, !tbaa !14
  %202 = load i32, ptr %10, align 4, !tbaa !14
  %203 = icmp ne i32 %201, %202
  br i1 %203, label %204, label %243

204:                                              ; preds = %200
  %205 = load ptr, ptr %3, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.hmm_par_t, ptr %205, i32 0, i32 5
  %207 = load ptr, ptr %206, align 8, !tbaa !30
  %208 = load i32, ptr %7, align 4, !tbaa !14
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds double, ptr %207, i64 %209
  %211 = load double, ptr %210, align 8, !tbaa !21
  %212 = load ptr, ptr %4, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.hmm_data_t, ptr %212, i32 0, i32 4
  %214 = load ptr, ptr %213, align 8, !tbaa !17
  %215 = getelementptr inbounds ptr, ptr %214, i64 1
  %216 = load ptr, ptr %215, align 8, !tbaa !5
  %217 = load i32, ptr %7, align 4, !tbaa !14
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds double, ptr %216, i64 %218
  %220 = load double, ptr %219, align 8, !tbaa !21
  %221 = fmul double %211, %220
  %222 = load ptr, ptr %3, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.hmm_par_t, ptr %222, i32 0, i32 3
  %224 = load ptr, ptr %223, align 8, !tbaa !31
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.hmm_data_t, ptr %225, i32 0, i32 2
  %227 = load ptr, ptr %226, align 8, !tbaa !25
  %228 = getelementptr inbounds i8, ptr %227, i64 1
  %229 = load i8, ptr %228, align 1, !tbaa !26
  %230 = sext i8 %229 to i32
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds ptr, ptr %224, i64 %231
  %233 = load ptr, ptr %232, align 8, !tbaa !5
  %234 = load i32, ptr %7, align 4, !tbaa !14
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds double, ptr %233, i64 %235
  %237 = load double, ptr %236, align 8, !tbaa !21
  %238 = load double, ptr %5, align 8, !tbaa !21
  %239 = call double @llvm.fmuladd.f64(double %221, double %237, double %238)
  store double %239, ptr %5, align 8, !tbaa !21
  br label %240

240:                                              ; preds = %204
  %241 = load i32, ptr %7, align 4, !tbaa !14
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %7, align 4, !tbaa !14
  br label %200, !llvm.loop !32

243:                                              ; preds = %200
  %244 = load double, ptr %5, align 8, !tbaa !21
  %245 = fcmp ogt double %244, 0x3FF000010C6F7A0B
  br i1 %245, label %249, label %246

246:                                              ; preds = %243
  %247 = load double, ptr %5, align 8, !tbaa !21
  %248 = fcmp olt double %247, 0x3FEFFFFDE7210BE9
  br i1 %248, label %249, label %253

249:                                              ; preds = %246, %243
  %250 = load ptr, ptr @stderr, align 8, !tbaa !5
  %251 = load double, ptr %5, align 8, !tbaa !21
  %252 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.6, double noundef %251) #6
  br label %253

253:                                              ; preds = %249, %246
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  ret void
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { noreturn 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 #2 = { inlinehint 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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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, !11, i64 4}
!10 = !{!"", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 0}
!13 = !{!"", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!14 = !{!11, !11, i64 0}
!15 = !{!13, !11, i64 4}
!16 = !{!10, !11, i64 0}
!17 = !{!10, !6, i64 24}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !6, i64 32}
!21 = !{!22, !22, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = distinct !{!23, !19}
!24 = !{!13, !6, i64 24}
!25 = !{!10, !6, i64 8}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = !{!13, !6, i64 32}
!31 = !{!13, !6, i64 16}
!32 = distinct !{!32, !19}


; 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.1 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__.hmm_backward = external hidden unnamed_addr constant [51 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.6 = external hidden unnamed_addr constant [39 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @calloc2(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @hmm_backward(ptr noundef readonly %0, ptr noundef %1) local_unnamed_addr #4 {
  %3 = icmp ne ptr %0, null
  %4 = icmp ne ptr %1, null
  %or.cond = and i1 %3, %4
  br i1 %or.cond, label %6, label %5

5:                                                ; preds = %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 215, ptr noundef nonnull @__PRETTY_FUNCTION__.hmm_backward) #6
  unreachable

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %9 = and i32 %8, 2
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %10, label %11

10:                                               ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 216, ptr noundef nonnull @__PRETTY_FUNCTION__.hmm_backward) #6
  unreachable

11:                                               ; preds = %6
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = load i32, ptr %1, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %1, i64 24
  %16 = load ptr, ptr %15, align 8, !tbaa !14
  %.not78 = icmp eq ptr %16, null
  br i1 %.not78, label %23, label %.preheader84

.preheader84:                                     ; preds = %11
  %.not7985 = icmp slt i32 %14, 0
  br i1 %.not7985, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader84, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader84 ]
  %17 = load ptr, ptr %15, align 8, !tbaa !14
  %18 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  tail call void @free(ptr noundef %19) #7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %20 = load i32, ptr %1, align 8, !tbaa !13
  %21 = sext i32 %20 to i64
  %.not79.not = icmp slt i64 %indvars.iv, %21
  br i1 %.not79.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !16

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load ptr, ptr %15, align 8, !tbaa !14
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader84
  %22 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %16, %.preheader84 ]
  tail call void @free(ptr noundef %22) #7
  %.pre135 = load i32, ptr %7, align 4, !tbaa !5
  %.pre136 = load i32, ptr %12, align 4, !tbaa !11
  br label %23

23:                                               ; preds = %._crit_edge, %11
  %24 = phi i32 [ %.pre136, %._crit_edge ], [ %13, %11 ]
  %25 = phi i32 [ %.pre135, %._crit_edge ], [ %8, %11 ]
  %26 = and i32 %25, -5
  store i32 %26, ptr %7, align 4, !tbaa !5
  %27 = add nsw i32 %14, 1
  %28 = tail call ptr @calloc2(i32 noundef %27, i32 noundef %24, i32 noundef 8)
  store ptr %28, ptr %15, align 8, !tbaa !14
  %29 = load i32, ptr %12, align 4, !tbaa !11
  %.not8087 = icmp eq i32 %29, 0
  br i1 %.not8087, label %.preheader, label %.lr.ph90

.lr.ph90:                                         ; preds = %23
  %30 = getelementptr inbounds i8, ptr %1, i64 32
  %31 = load ptr, ptr %30, align 8, !tbaa !18
  %32 = sext i32 %14 to i64
  %33 = getelementptr inbounds double, ptr %31, i64 %32
  %34 = getelementptr inbounds ptr, ptr %28, i64 %32
  %35 = load ptr, ptr %34, align 8, !tbaa !15
  %36 = zext i32 %29 to i64
  %min.iters.check = icmp eq i32 %29, 1
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph90
  %indvars.iv116.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph90 ], [ %n.vec, %middle.block ]
  %37 = sub nsw i64 %36, %indvars.iv116.ph
  %xtraiter = and i64 %37, 3
  %lcmp.mod.not = icmp eq i64 %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
  %indvars.iv116.prol = phi i64 [ %indvars.iv.next117.prol, %scalar.ph.prol ], [ %indvars.iv116.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %38 = load double, ptr %33, align 8, !tbaa !19
  %39 = fdiv double 1.000000e+00, %38
  %40 = getelementptr inbounds double, ptr %35, i64 %indvars.iv116.prol
  store double %39, ptr %40, align 8, !tbaa !19
  %indvars.iv.next117.prol = add nuw nsw i64 %indvars.iv116.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !21

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv116.unr = phi i64 [ %indvars.iv116.ph, %scalar.ph.preheader ], [ %indvars.iv.next117.prol, %scalar.ph.prol ]
  %41 = sub nsw i64 %indvars.iv116.ph, %36
  %42 = icmp ugt i64 %41, -4
  br i1 %42, label %.preheader, label %scalar.ph.preheader.new

scalar.ph.preheader.new:                          ; preds = %scalar.ph.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %35, i64 8
  %invariant.gep158 = getelementptr i8, ptr %35, i64 16
  %invariant.gep160 = getelementptr i8, ptr %35, i64 24
  br label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph90
  %43 = shl nuw nsw i64 %36, 3
  %scevgep = getelementptr i8, ptr %35, i64 %43
  %44 = shl nsw i64 %32, 3
  %45 = getelementptr i8, ptr %31, i64 %44
  %scevgep143 = getelementptr i8, ptr %45, i64 8
  %bound0 = icmp ult ptr %35, %scevgep143
  %bound1 = icmp ult ptr %33, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %36, 4294967294
  %46 = load double, ptr %33, align 8, !tbaa !19, !alias.scope !23
  %broadcast.splatinsert = insertelement <2 x double> poison, double %46, i64 0
  %47 = fdiv <2 x double> <double 1.000000e+00, double poison>, %broadcast.splatinsert
  %48 = shufflevector <2 x double> %47, <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 ]
  %49 = getelementptr inbounds double, ptr %35, i64 %index
  store <2 x double> %48, ptr %49, align 8, !tbaa !19, !alias.scope !26, !noalias !23
  %index.next = add nuw i64 %index, 2
  %50 = icmp eq i64 %index.next, %n.vec
  br i1 %50, label %middle.block, label %vector.body, !llvm.loop !28

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %36
  br i1 %cmp.n, label %.preheader, label %scalar.ph.preheader

.preheader:                                       ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %23
  %.074101 = add i32 %14, -1
  %51 = icmp sgt i32 %14, 1
  br i1 %51, label %.lr.ph104, label %._crit_edge105

.lr.ph104:                                        ; preds = %.preheader
  %52 = getelementptr inbounds i8, ptr %0, i64 24
  %53 = load ptr, ptr %52, align 8, !tbaa !31
  %54 = getelementptr inbounds i8, ptr %1, i64 8
  %55 = load ptr, ptr %54, align 8, !tbaa !32
  %.not8297 = icmp eq i32 %13, 0
  br i1 %.not8297, label %._crit_edge105.thread, label %.lr.ph104.split

._crit_edge105.thread:                            ; preds = %.lr.ph104
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = or i32 %56, 4
  store i32 %57, ptr %7, align 4, !tbaa !5
  br label %._crit_edge111.thread

.lr.ph104.split:                                  ; preds = %.lr.ph104
  %58 = getelementptr inbounds i8, ptr %1, i64 32
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  %60 = zext i32 %13 to i64
  %61 = zext nneg i32 %.074101 to i64
  %62 = zext nneg i32 %14 to i64
  %xtraiter145 = and i64 %60, 3
  %63 = icmp ult i32 %13, 4
  %unroll_iter = and i64 %60, 4294967292
  %lcmp.mod146.not = icmp eq i64 %xtraiter145, 0
  br label %.lr.ph100

scalar.ph:                                        ; preds = %scalar.ph, %scalar.ph.preheader.new
  %indvars.iv116 = phi i64 [ %indvars.iv116.unr, %scalar.ph.preheader.new ], [ %indvars.iv.next117.3, %scalar.ph ]
  %64 = load double, ptr %33, align 8, !tbaa !19
  %65 = fdiv double 1.000000e+00, %64
  %66 = getelementptr inbounds double, ptr %35, i64 %indvars.iv116
  store double %65, ptr %66, align 8, !tbaa !19
  %67 = load double, ptr %33, align 8, !tbaa !19
  %68 = fdiv double 1.000000e+00, %67
  %gep = getelementptr double, ptr %invariant.gep, i64 %indvars.iv116
  store double %68, ptr %gep, align 8, !tbaa !19
  %69 = load double, ptr %33, align 8, !tbaa !19
  %70 = fdiv double 1.000000e+00, %69
  %gep159 = getelementptr double, ptr %invariant.gep158, i64 %indvars.iv116
  store double %70, ptr %gep159, align 8, !tbaa !19
  %71 = load double, ptr %33, align 8, !tbaa !19
  %72 = fdiv double 1.000000e+00, %71
  %gep161 = getelementptr double, ptr %invariant.gep160, i64 %indvars.iv116
  store double %72, ptr %gep161, align 8, !tbaa !19
  %indvars.iv.next117.3 = add nuw nsw i64 %indvars.iv116, 4
  %.not80.3 = icmp eq i64 %indvars.iv.next117.3, %36
  br i1 %.not80.3, label %.preheader, label %scalar.ph, !llvm.loop !33

..loopexit_crit_edge.split:                       ; preds = %._crit_edge96
  %indvars.iv.next126 = add nsw i64 %indvars.iv125, -1
  %73 = icmp sgt i64 %indvars.iv125, 1
  %indvars.iv.next128 = add nsw i64 %indvars.iv127, -1
  br i1 %73, label %.lr.ph100, label %._crit_edge105, !llvm.loop !34

.lr.ph100:                                        ; preds = %.lr.ph104.split, %..loopexit_crit_edge.split
  %indvars.iv127 = phi i64 [ %62, %.lr.ph104.split ], [ %indvars.iv.next128, %..loopexit_crit_edge.split ]
  %indvars.iv125 = phi i64 [ %61, %.lr.ph104.split ], [ %indvars.iv.next126, %..loopexit_crit_edge.split ]
  %74 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv127
  %75 = load ptr, ptr %74, align 8, !tbaa !15
  %76 = getelementptr inbounds i8, ptr %55, i64 %indvars.iv127
  %77 = load i8, ptr %76, align 1, !tbaa !35
  %78 = sext i8 %77 to i32
  %79 = mul nsw i32 %13, %78
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds ptr, ptr %53, i64 %80
  %82 = getelementptr inbounds double, ptr %59, i64 %indvars.iv125
  %83 = getelementptr inbounds ptr, ptr %28, i64 %indvars.iv125
  %84 = load ptr, ptr %83, align 8, !tbaa !15
  br label %.lr.ph95

.lr.ph95:                                         ; preds = %.lr.ph100, %._crit_edge96
  %indvars.iv122 = phi i64 [ 0, %.lr.ph100 ], [ %indvars.iv.next123, %._crit_edge96 ]
  %85 = getelementptr inbounds ptr, ptr %81, i64 %indvars.iv122
  %86 = load ptr, ptr %85, align 8, !tbaa !15
  br i1 %63, label %._crit_edge96.unr-lcssa, label %.lr.ph95.new

.lr.ph95.new:                                     ; preds = %.lr.ph95, %.lr.ph95.new
  %indvars.iv119 = phi i64 [ %indvars.iv.next120.3, %.lr.ph95.new ], [ 0, %.lr.ph95 ]
  %.093 = phi double [ %106, %.lr.ph95.new ], [ 0.000000e+00, %.lr.ph95 ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph95.new ], [ 0, %.lr.ph95 ]
  %87 = getelementptr inbounds double, ptr %86, i64 %indvars.iv119
  %88 = load double, ptr %87, align 8, !tbaa !19
  %89 = getelementptr inbounds double, ptr %75, i64 %indvars.iv119
  %90 = load double, ptr %89, align 8, !tbaa !19
  %91 = tail call double @llvm.fmuladd.f64(double %88, double %90, double %.093)
  %indvars.iv.next120 = or disjoint i64 %indvars.iv119, 1
  %92 = getelementptr inbounds double, ptr %86, i64 %indvars.iv.next120
  %93 = load double, ptr %92, align 8, !tbaa !19
  %94 = getelementptr inbounds double, ptr %75, i64 %indvars.iv.next120
  %95 = load double, ptr %94, align 8, !tbaa !19
  %96 = tail call double @llvm.fmuladd.f64(double %93, double %95, double %91)
  %indvars.iv.next120.1 = or disjoint i64 %indvars.iv119, 2
  %97 = getelementptr inbounds double, ptr %86, i64 %indvars.iv.next120.1
  %98 = load double, ptr %97, align 8, !tbaa !19
  %99 = getelementptr inbounds double, ptr %75, i64 %indvars.iv.next120.1
  %100 = load double, ptr %99, align 8, !tbaa !19
  %101 = tail call double @llvm.fmuladd.f64(double %98, double %100, double %96)
  %indvars.iv.next120.2 = or disjoint i64 %indvars.iv119, 3
  %102 = getelementptr inbounds double, ptr %86, i64 %indvars.iv.next120.2
  %103 = load double, ptr %102, align 8, !tbaa !19
  %104 = getelementptr inbounds double, ptr %75, i64 %indvars.iv.next120.2
  %105 = load double, ptr %104, align 8, !tbaa !19
  %106 = tail call double @llvm.fmuladd.f64(double %103, double %105, double %101)
  %indvars.iv.next120.3 = add nuw nsw i64 %indvars.iv119, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge96.unr-lcssa, label %.lr.ph95.new, !llvm.loop !36

._crit_edge96.unr-lcssa:                          ; preds = %.lr.ph95.new, %.lr.ph95
  %.lcssa144.ph = phi double [ poison, %.lr.ph95 ], [ %106, %.lr.ph95.new ]
  %indvars.iv119.unr = phi i64 [ 0, %.lr.ph95 ], [ %indvars.iv.next120.3, %.lr.ph95.new ]
  %.093.unr = phi double [ 0.000000e+00, %.lr.ph95 ], [ %106, %.lr.ph95.new ]
  br i1 %lcmp.mod146.not, label %._crit_edge96, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge96.unr-lcssa, %.epil.preheader
  %indvars.iv119.epil = phi i64 [ %indvars.iv.next120.epil, %.epil.preheader ], [ %indvars.iv119.unr, %._crit_edge96.unr-lcssa ]
  %.093.epil = phi double [ %111, %.epil.preheader ], [ %.093.unr, %._crit_edge96.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge96.unr-lcssa ]
  %107 = getelementptr inbounds double, ptr %86, i64 %indvars.iv119.epil
  %108 = load double, ptr %107, align 8, !tbaa !19
  %109 = getelementptr inbounds double, ptr %75, i64 %indvars.iv119.epil
  %110 = load double, ptr %109, align 8, !tbaa !19
  %111 = tail call double @llvm.fmuladd.f64(double %108, double %110, double %.093.epil)
  %indvars.iv.next120.epil = add nuw nsw i64 %indvars.iv119.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter145
  br i1 %epil.iter.cmp.not, label %._crit_edge96, label %.epil.preheader, !llvm.loop !37

._crit_edge96:                                    ; preds = %.epil.preheader, %._crit_edge96.unr-lcssa
  %.lcssa144 = phi double [ %.lcssa144.ph, %._crit_edge96.unr-lcssa ], [ %111, %.epil.preheader ]
  %112 = load double, ptr %82, align 8, !tbaa !19
  %113 = fdiv double %.lcssa144, %112
  %114 = getelementptr inbounds double, ptr %84, i64 %indvars.iv122
  store double %113, ptr %114, align 8, !tbaa !19
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %.not82 = icmp eq i64 %indvars.iv.next123, %60
  br i1 %.not82, label %..loopexit_crit_edge.split, label %.lr.ph95, !llvm.loop !38

._crit_edge105:                                   ; preds = %..loopexit_crit_edge.split, %.preheader
  %115 = load i32, ptr %7, align 4, !tbaa !5
  %116 = or i32 %115, 4
  store i32 %116, ptr %7, align 4, !tbaa !5
  %.not81106 = icmp eq i32 %13, 0
  br i1 %.not81106, label %._crit_edge111.thread, label %.lr.ph110

.lr.ph110:                                        ; preds = %._crit_edge105
  %117 = getelementptr inbounds i8, ptr %0, i64 32
  %118 = load ptr, ptr %117, align 8, !tbaa !39
  %119 = getelementptr inbounds i8, ptr %28, i64 8
  %120 = load ptr, ptr %119, align 8, !tbaa !15
  %121 = getelementptr inbounds i8, ptr %0, i64 16
  %122 = load ptr, ptr %121, align 8, !tbaa !40
  %123 = getelementptr inbounds i8, ptr %1, i64 8
  %124 = load ptr, ptr %123, align 8, !tbaa !32
  %125 = getelementptr inbounds i8, ptr %124, i64 1
  %126 = load i8, ptr %125, align 1, !tbaa !35
  %127 = sext i8 %126 to i64
  %128 = getelementptr inbounds ptr, ptr %122, i64 %127
  %129 = load ptr, ptr %128, align 8, !tbaa !15
  %130 = zext i32 %13 to i64
  %xtraiter149 = and i64 %130, 1
  %131 = icmp eq i32 %13, 1
  br i1 %131, label %._crit_edge111.unr-lcssa, label %.lr.ph110.new

.lr.ph110.new:                                    ; preds = %.lr.ph110
  %unroll_iter153 = and i64 %130, 4294967294
  br label %132

132:                                              ; preds = %132, %.lr.ph110.new
  %indvars.iv132 = phi i64 [ 0, %.lr.ph110.new ], [ %indvars.iv.next133.1, %132 ]
  %.1108 = phi double [ 0.000000e+00, %.lr.ph110.new ], [ %148, %132 ]
  %niter154 = phi i64 [ 0, %.lr.ph110.new ], [ %niter154.next.1, %132 ]
  %133 = getelementptr inbounds double, ptr %118, i64 %indvars.iv132
  %134 = load double, ptr %133, align 8, !tbaa !19
  %135 = getelementptr inbounds double, ptr %120, i64 %indvars.iv132
  %136 = load double, ptr %135, align 8, !tbaa !19
  %137 = fmul double %134, %136
  %138 = getelementptr inbounds double, ptr %129, i64 %indvars.iv132
  %139 = load double, ptr %138, align 8, !tbaa !19
  %140 = tail call double @llvm.fmuladd.f64(double %137, double %139, double %.1108)
  %indvars.iv.next133 = or disjoint i64 %indvars.iv132, 1
  %141 = getelementptr inbounds double, ptr %118, i64 %indvars.iv.next133
  %142 = load double, ptr %141, align 8, !tbaa !19
  %143 = getelementptr inbounds double, ptr %120, i64 %indvars.iv.next133
  %144 = load double, ptr %143, align 8, !tbaa !19
  %145 = fmul double %142, %144
  %146 = getelementptr inbounds double, ptr %129, i64 %indvars.iv.next133
  %147 = load double, ptr %146, align 8, !tbaa !19
  %148 = tail call double @llvm.fmuladd.f64(double %145, double %147, double %140)
  %indvars.iv.next133.1 = add nuw nsw i64 %indvars.iv132, 2
  %niter154.next.1 = add i64 %niter154, 2
  %niter154.ncmp.1 = icmp eq i64 %niter154.next.1, %unroll_iter153
  br i1 %niter154.ncmp.1, label %._crit_edge111.unr-lcssa, label %132, !llvm.loop !41

._crit_edge111.unr-lcssa:                         ; preds = %132, %.lr.ph110
  %.lcssa.ph = phi double [ poison, %.lr.ph110 ], [ %148, %132 ]
  %indvars.iv132.unr = phi i64 [ 0, %.lr.ph110 ], [ %indvars.iv.next133.1, %132 ]
  %.1108.unr = phi double [ 0.000000e+00, %.lr.ph110 ], [ %148, %132 ]
  %lcmp.mod151.not = icmp eq i64 %xtraiter149, 0
  br i1 %lcmp.mod151.not, label %._crit_edge111, label %._crit_edge111.epilog-lcssa

._crit_edge111.epilog-lcssa:                      ; preds = %._crit_edge111.unr-lcssa
  %149 = getelementptr inbounds double, ptr %118, i64 %indvars.iv132.unr
  %150 = load double, ptr %149, align 8, !tbaa !19
  %151 = getelementptr inbounds double, ptr %120, i64 %indvars.iv132.unr
  %152 = load double, ptr %151, align 8, !tbaa !19
  %153 = fmul double %150, %152
  %154 = getelementptr inbounds double, ptr %129, i64 %indvars.iv132.unr
  %155 = load double, ptr %154, align 8, !tbaa !19
  %156 = tail call double @llvm.fmuladd.f64(double %153, double %155, double %.1108.unr)
  br label %._crit_edge111

._crit_edge111:                                   ; preds = %._crit_edge111.unr-lcssa, %._crit_edge111.epilog-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge111.unr-lcssa ], [ %156, %._crit_edge111.epilog-lcssa ]
  %157 = fcmp ogt double %.lcssa, 0x3FF000010C6F7A0B
  %158 = fcmp olt double %.lcssa, 0x3FEFFFFDE7210BE9
  %or.cond3 = or i1 %157, %158
  br i1 %or.cond3, label %._crit_edge111.thread, label %161

._crit_edge111.thread:                            ; preds = %._crit_edge105.thread, %._crit_edge105, %._crit_edge111
  %.1.lcssa140 = phi double [ %.lcssa, %._crit_edge111 ], [ 0.000000e+00, %._crit_edge105 ], [ 0.000000e+00, %._crit_edge105.thread ]
  %159 = load ptr, ptr @stderr, align 8, !tbaa !15
  %160 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef nonnull @.str.6, double noundef %.1.lcssa140) #8
  br label %161

161:                                              ; preds = %._crit_edge111, %._crit_edge111.thread
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #5

attributes #0 = { noreturn 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 #1 = { inlinehint 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nofree 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 #6 = { noreturn nounwind }
attributes #7 = { nounwind }
attributes #8 = { cold 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, !7, i64 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 4}
!12 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !10, i64 24}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !10, i64 32}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = !{!24}
!24 = distinct !{!24, !25}
!25 = distinct !{!25, !"LVerDomain"}
!26 = !{!27}
!27 = distinct !{!27, !25}
!28 = distinct !{!28, !17, !29, !30}
!29 = !{!"llvm.loop.isvectorized", i32 1}
!30 = !{!"llvm.loop.unroll.runtime.disable"}
!31 = !{!12, !10, i64 24}
!32 = !{!6, !10, i64 8}
!33 = distinct !{!33, !17, !29}
!34 = distinct !{!34, !17}
!35 = !{!8, !8, i64 0}
!36 = distinct !{!36, !17}
!37 = distinct !{!37, !22}
!38 = distinct !{!38, !17}
!39 = !{!12, !10, i64 32}
!40 = !{!12, !10, i64 16}
!41 = distinct !{!41, !17}


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