; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/descriptor (Corner)

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

%class.Corner = type { i32, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, i32, i32 }
%class.ImageContent = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6Corner4isOKEiii(ptr noundef nonnull align 4 dereferenceable(88), i32 noundef, i32 noundef, i32 noundef) #0 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3expf(float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Corner12computeAngleEP12ImageContent(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef %1) #4 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca i32, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %15 = load ptr, ptr %3, align 8
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  br label %172

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %20 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 14
  %21 = load float, ptr %20, align 4, !tbaa !9
  %22 = call float @llvm.fmuladd.f32(float 3.000000e+00, float %21, float 2.000000e+00)
  %23 = fptosi float %22 to i32
  %24 = ashr i32 %23, 1
  store i32 %24, ptr %5, align 4, !tbaa !13
  %25 = load i32, ptr %5, align 4, !tbaa !13
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %26)
  %28 = load i32, ptr %5, align 4, !tbaa !13
  %29 = sub i32 %27, %28
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %30)
  %32 = load i32, ptr %5, align 4, !tbaa !13
  %33 = sub i32 %31, %32
  %34 = call noundef i32 @_ZN6Corner4isOKEiii(ptr noundef nonnull align 4 dereferenceable(88) %15, i32 noundef %25, i32 noundef %29, i32 noundef %33)
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %37, label %36

36:                                               ; preds = %19
  store i32 1, ptr %6, align 4
  br label %170

37:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %38 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 14
  %39 = load float, ptr %38, align 4, !tbaa !9
  %40 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 14
  %41 = load float, ptr %40, align 4, !tbaa !9
  %42 = fmul float %39, %41
  store float %42, ptr %7, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %43 = load float, ptr %7, align 4, !tbaa !14
  %44 = fmul float -2.000000e+00, %43
  store float %44, ptr %8, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store float 0.000000e+00, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %45 = load i32, ptr %5, align 4, !tbaa !13
  store i32 %45, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store float 0.000000e+00, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store float 0.000000e+00, ptr %12, align 4, !tbaa !14
  %46 = load ptr, ptr %4, align 8, !tbaa !5
  %47 = getelementptr inbounds %class.ImageContent, ptr %46, i32 0, i32 4
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  %49 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 2
  %50 = load float, ptr %49, align 4, !tbaa !17
  %51 = fptosi float %50 to i32
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds ptr, ptr %48, i64 %52
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 1
  %56 = load float, ptr %55, align 4, !tbaa !18
  %57 = fptosi float %56 to i32
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds float, ptr %54, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !14
  %61 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 19
  store float %60, ptr %61, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %62 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 2
  %63 = load float, ptr %62, align 4, !tbaa !17
  %64 = fptosi float %63 to i32
  %65 = load i32, ptr %10, align 4, !tbaa !13
  %66 = sub nsw i32 %64, %65
  store i32 %66, ptr %13, align 4, !tbaa !13
  br label %67

67:                                               ; preds = %159, %37
  %68 = load i32, ptr %13, align 4, !tbaa !13
  %69 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 2
  %70 = load float, ptr %69, align 4, !tbaa !17
  %71 = fptosi float %70 to i32
  %72 = load i32, ptr %10, align 4, !tbaa !13
  %73 = add nsw i32 %71, %72
  %74 = icmp slt i32 %68, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %67
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %162

76:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %77 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !18
  %79 = fptosi float %78 to i32
  %80 = load i32, ptr %10, align 4, !tbaa !13
  %81 = sub nsw i32 %79, %80
  store i32 %81, ptr %14, align 4, !tbaa !13
  br label %82

82:                                               ; preds = %155, %76
  %83 = load i32, ptr %14, align 4, !tbaa !13
  %84 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 1
  %85 = load float, ptr %84, align 4, !tbaa !18
  %86 = fptosi float %85 to i32
  %87 = load i32, ptr %10, align 4, !tbaa !13
  %88 = add nsw i32 %86, %87
  %89 = icmp slt i32 %83, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %82
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %158

91:                                               ; preds = %82
  %92 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 19
  %93 = load float, ptr %92, align 4, !tbaa !19
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.ImageContent, ptr %94, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !15
  %97 = load i32, ptr %13, align 4, !tbaa !13
  %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 %14, align 4, !tbaa !13
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds float, ptr %100, i64 %102
  %104 = load float, ptr %103, align 4, !tbaa !14
  %105 = fsub float %93, %104
  store float %105, ptr %11, align 4, !tbaa !14
  %106 = load float, ptr %11, align 4, !tbaa !14
  %107 = fpext float %106 to double
  %108 = fcmp ogt double %107, 0x400921FB54442D18
  br i1 %108, label %109, label %114

109:                                              ; preds = %91
  %110 = load float, ptr %11, align 4, !tbaa !14
  %111 = fpext float %110 to double
  %112 = fsub double %111, 0x401921FB544486E0
  %113 = fptrunc double %112 to float
  store float %113, ptr %11, align 4, !tbaa !14
  br label %124

114:                                              ; preds = %91
  %115 = load float, ptr %11, align 4, !tbaa !14
  %116 = fpext float %115 to double
  %117 = fcmp olt double %116, 0xC00921FB54442D18
  br i1 %117, label %118, label %123

118:                                              ; preds = %114
  %119 = load float, ptr %11, align 4, !tbaa !14
  %120 = fpext float %119 to double
  %121 = fadd double %120, 0x401921FB544486E0
  %122 = fptrunc double %121 to float
  store float %122, ptr %11, align 4, !tbaa !14
  br label %123

123:                                              ; preds = %118, %114
  br label %124

124:                                              ; preds = %123, %109
  %125 = load i32, ptr %14, align 4, !tbaa !13
  %126 = sitofp i32 %125 to float
  %127 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 1
  %128 = load float, ptr %127, align 4, !tbaa !18
  %129 = fsub float %126, %128
  %130 = load i32, ptr %14, align 4, !tbaa !13
  %131 = sitofp i32 %130 to float
  %132 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 1
  %133 = load float, ptr %132, align 4, !tbaa !18
  %134 = fsub float %131, %133
  %135 = load i32, ptr %13, align 4, !tbaa !13
  %136 = sitofp i32 %135 to float
  %137 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 2
  %138 = load float, ptr %137, align 4, !tbaa !17
  %139 = fsub float %136, %138
  %140 = load i32, ptr %13, align 4, !tbaa !13
  %141 = sitofp i32 %140 to float
  %142 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 2
  %143 = load float, ptr %142, align 4, !tbaa !17
  %144 = fsub float %141, %143
  %145 = fmul float %139, %144
  %146 = call float @llvm.fmuladd.f32(float %129, float %134, float %145)
  %147 = load float, ptr %8, align 4, !tbaa !14
  %148 = fdiv float %146, %147
  %149 = call noundef float @_ZSt3expf(float noundef %148)
  %150 = load float, ptr %11, align 4, !tbaa !14
  %151 = load float, ptr %12, align 4, !tbaa !14
  %152 = call float @llvm.fmuladd.f32(float %149, float %150, float %151)
  store float %152, ptr %12, align 4, !tbaa !14
  %153 = load float, ptr %9, align 4, !tbaa !14
  %154 = fadd float %153, 1.000000e+00
  store float %154, ptr %9, align 4, !tbaa !14
  br label %155

155:                                              ; preds = %124
  %156 = load i32, ptr %14, align 4, !tbaa !13
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %14, align 4, !tbaa !13
  br label %82, !llvm.loop !20

158:                                              ; preds = %90
  br label %159

159:                                              ; preds = %158
  %160 = load i32, ptr %13, align 4, !tbaa !13
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %13, align 4, !tbaa !13
  br label %67, !llvm.loop !22

162:                                              ; preds = %75
  %163 = load float, ptr %12, align 4, !tbaa !14
  %164 = load float, ptr %9, align 4, !tbaa !14
  %165 = fdiv float %163, %164
  %166 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 19
  %167 = load float, ptr %166, align 4, !tbaa !19
  %168 = fsub float %167, %165
  store float %168, ptr %166, align 4, !tbaa !19
  %169 = getelementptr inbounds %class.Corner, ptr %15, i32 0, i32 20
  store i32 1, ptr %169, align 4, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  store i32 0, ptr %6, align 4
  br label %170

170:                                              ; preds = %162, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %171 = load i32, ptr %6, align 4
  switch i32 %171, label %173 [
    i32 0, label %172
    i32 1, label %172
  ]

172:                                              ; preds = %170, %170, %18
  ret void

173:                                              ; preds = %170
  unreachable
}

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint mustprogress 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 = { mustprogress 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 = { 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++ TBAA"}
!9 = !{!10, !12, i64 56}
!10 = !{!"_ZTS6Corner", !11, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !11, i64 68, !11, i64 72, !12, i64 76, !11, i64 80, !11, i64 84}
!11 = !{!"int", !7, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!12, !12, i64 0}
!15 = !{!16, !6, i64 16}
!16 = !{!"_ZTS12ImageContent", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72}
!17 = !{!10, !12, i64 8}
!18 = !{!10, !12, i64 4}
!19 = !{!10, !12, i64 76}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!10, !11, i64 80}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6Corner4isOKEiii(ptr noundef nonnull align 4 dereferenceable(88), i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3expf(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN6Corner12computeAngleEP12ImageContent(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef %1) local_unnamed_addr #0 align 2 {
  %3 = icmp eq ptr %1, null
  br i1 %3, label %97, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  %6 = load float, ptr %5, align 4, !tbaa !5
  %7 = tail call float @llvm.fmuladd.f32(float %6, float 3.000000e+00, float 2.000000e+00)
  %8 = fptosi float %7 to i32
  %9 = ashr i32 %8, 1
  %10 = tail call noundef i32 @_ZNK12ImageContent1xEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %11 = sub i32 %10, %9
  %12 = tail call noundef i32 @_ZNK12ImageContent1yEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %13 = sub i32 %12, %9
  %14 = tail call noundef i32 @_ZN6Corner4isOKEiii(ptr noundef nonnull align 4 dereferenceable(88) %0, i32 noundef %9, i32 noundef %11, i32 noundef %13)
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %97, label %15

15:                                               ; preds = %4
  %16 = load float, ptr %5, align 4, !tbaa !5
  %17 = fmul float %16, %16
  %18 = fmul float %17, -2.000000e+00
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !11
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load float, ptr %21, align 4, !tbaa !14
  %23 = fptosi float %22 to i32
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds ptr, ptr %20, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %0, i64 4
  %28 = load float, ptr %27, align 4, !tbaa !16
  %29 = fptosi float %28 to i32
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds float, ptr %26, i64 %30
  %32 = load float, ptr %31, align 4, !tbaa !17
  %33 = getelementptr inbounds i8, ptr %0, i64 76
  store float %32, ptr %33, align 4, !tbaa !18
  %34 = sub nsw i32 %23, %9
  %35 = add nsw i32 %9, %23
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %.lr.ph50.preheader, label %._crit_edge51

.lr.ph50.preheader:                               ; preds = %15
  %37 = sub nsw i32 0, %9
  %38 = sext i32 %37 to i64
  %39 = add nsw i64 %24, %38
  br label %.lr.ph50

._crit_edge51.loopexit:                           ; preds = %._crit_edge
  %.pre59 = load float, ptr %33, align 4, !tbaa !18
  %40 = fdiv float %.1.lcssa, %.138.lcssa
  br label %._crit_edge51

._crit_edge51:                                    ; preds = %._crit_edge51.loopexit, %15
  %41 = phi float [ %32, %15 ], [ %.pre59, %._crit_edge51.loopexit ]
  %42 = phi float [ 0x7FF8000000000000, %15 ], [ %40, %._crit_edge51.loopexit ]
  %43 = fsub float %41, %42
  store float %43, ptr %33, align 4, !tbaa !18
  %44 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 1, ptr %44, align 4, !tbaa !19
  br label %97

.lr.ph50:                                         ; preds = %.lr.ph50.preheader, %._crit_edge
  %45 = phi float [ %22, %.lr.ph50.preheader ], [ %55, %._crit_edge ]
  %46 = phi float [ %28, %.lr.ph50.preheader ], [ %56, %._crit_edge ]
  %indvars.iv56 = phi i64 [ %39, %.lr.ph50.preheader ], [ %indvars.iv.next57, %._crit_edge ]
  %.03547 = phi float [ 0.000000e+00, %.lr.ph50.preheader ], [ %.1.lcssa, %._crit_edge ]
  %.03746 = phi float [ 0.000000e+00, %.lr.ph50.preheader ], [ %.138.lcssa, %._crit_edge ]
  %47 = fptosi float %46 to i32
  %48 = sub nsw i32 %47, %9
  %49 = add nsw i32 %9, %47
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph50
  %51 = trunc nsw i64 %indvars.iv56 to i32
  %52 = sitofp i32 %51 to float
  %53 = sext i32 %47 to i64
  %54 = add nsw i64 %38, %53
  br label %61

._crit_edge.loopexit:                             ; preds = %80
  %.pre = load float, ptr %21, align 4, !tbaa !14
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph50
  %55 = phi float [ %45, %.lr.ph50 ], [ %.pre, %._crit_edge.loopexit ]
  %56 = phi float [ %46, %.lr.ph50 ], [ %92, %._crit_edge.loopexit ]
  %.138.lcssa = phi float [ %.03746, %.lr.ph50 ], [ %91, %._crit_edge.loopexit ]
  %.1.lcssa = phi float [ %.03547, %.lr.ph50 ], [ %90, %._crit_edge.loopexit ]
  %indvars.iv.next57 = add nsw i64 %indvars.iv56, 1
  %57 = fptosi float %55 to i32
  %58 = add nsw i32 %9, %57
  %59 = sext i32 %58 to i64
  %60 = icmp slt i64 %indvars.iv.next57, %59
  br i1 %60, label %.lr.ph50, label %._crit_edge51.loopexit, !llvm.loop !20

61:                                               ; preds = %.lr.ph, %80
  %indvars.iv = phi i64 [ %54, %.lr.ph ], [ %indvars.iv.next, %80 ]
  %62 = phi float [ %46, %.lr.ph ], [ %92, %80 ]
  %.143 = phi float [ %.03547, %.lr.ph ], [ %90, %80 ]
  %.13842 = phi float [ %.03746, %.lr.ph ], [ %91, %80 ]
  %63 = load float, ptr %33, align 4, !tbaa !18
  %64 = load ptr, ptr %19, align 8, !tbaa !11
  %65 = getelementptr inbounds ptr, ptr %64, i64 %indvars.iv56
  %66 = load ptr, ptr %65, align 8, !tbaa !15
  %67 = getelementptr inbounds float, ptr %66, i64 %indvars.iv
  %68 = load float, ptr %67, align 4, !tbaa !17
  %69 = fsub float %63, %68
  %70 = fpext float %69 to double
  %71 = fcmp ogt double %70, 0x400921FB54442D18
  br i1 %71, label %72, label %75

72:                                               ; preds = %61
  %73 = fadd double %70, 0xC01921FB544486E0
  %74 = fptrunc double %73 to float
  br label %80

75:                                               ; preds = %61
  %76 = fcmp olt double %70, 0xC00921FB54442D18
  br i1 %76, label %77, label %80

77:                                               ; preds = %75
  %78 = fadd double %70, 0x401921FB544486E0
  %79 = fptrunc double %78 to float
  br label %80

80:                                               ; preds = %75, %77, %72
  %.036 = phi float [ %74, %72 ], [ %79, %77 ], [ %69, %75 ]
  %81 = trunc nsw i64 %indvars.iv to i32
  %82 = sitofp i32 %81 to float
  %83 = fsub float %82, %62
  %84 = load float, ptr %21, align 4, !tbaa !14
  %85 = fsub float %52, %84
  %86 = fmul float %85, %85
  %87 = tail call float @llvm.fmuladd.f32(float %83, float %83, float %86)
  %88 = fdiv float %87, %18
  %89 = tail call noundef float @_ZSt3expf(float noundef %88)
  %90 = tail call float @llvm.fmuladd.f32(float %89, float %.036, float %.143)
  %91 = fadd float %.13842, 1.000000e+00
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %92 = load float, ptr %27, align 4, !tbaa !16
  %93 = fptosi float %92 to i32
  %94 = add nsw i32 %9, %93
  %95 = sext i32 %94 to i64
  %96 = icmp slt i64 %indvars.iv.next, %95
  br i1 %96, label %61, label %._crit_edge.loopexit, !llvm.loop !22

97:                                               ; preds = %._crit_edge51, %4, %2
  ret void
}

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint mustprogress 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" }

!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, !10, i64 56}
!6 = !{!"_ZTS6Corner", !7, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !7, i64 68, !7, i64 72, !10, i64 76, !7, i64 80, !7, i64 84}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"float", !8, i64 0}
!11 = !{!12, !13, i64 16}
!12 = !{!"_ZTS12ImageContent", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !10, i64 8}
!15 = !{!13, !13, i64 0}
!16 = !{!6, !10, i64 4}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !10, i64 76}
!19 = !{!6, !7, i64 80}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass