; 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: mustprogress uwtable
define dso_local void @_ZN6Corner16computeAngleLoweEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef %1, ptr noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %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
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %18 = load ptr, ptr %4, align 8
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = icmp eq ptr %19, null
  br i1 %20, label %24, label %21

21:                                               ; preds = %3
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = icmp eq ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %21, %3
  br label %196

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

41:                                               ; preds = %25
  store i32 1, ptr %8, align 4
  br label %194

42:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %43 = call noalias noundef nonnull ptr @_Znam(i64 noundef 292) #8
  store ptr %43, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %44

44:                                               ; preds = %53, %42
  %45 = load i32, ptr %10, align 4, !tbaa !13
  %46 = icmp slt i32 %45, 73
  br i1 %46, label %48, label %47

47:                                               ; preds = %44
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %56

48:                                               ; preds = %44
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = load i32, ptr %10, align 4, !tbaa !13
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds float, ptr %49, i64 %51
  store float 0.000000e+00, ptr %52, align 4, !tbaa !14
  br label %53

53:                                               ; preds = %48
  %54 = load i32, ptr %10, align 4, !tbaa !13
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %10, align 4, !tbaa !13
  br label %44, !llvm.loop !15

56:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %57 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 14
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 14
  %60 = load float, ptr %59, align 4, !tbaa !9
  %61 = fmul float %58, %60
  store float %61, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %62 = load float, ptr %11, align 4, !tbaa !14
  %63 = fmul float -2.000000e+00, %62
  store float %63, ptr %12, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %64 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 2
  %65 = load float, ptr %64, align 4, !tbaa !17
  %66 = fptosi float %65 to i32
  %67 = load i32, ptr %7, align 4, !tbaa !13
  %68 = sub nsw i32 %66, %67
  store i32 %68, ptr %13, align 4, !tbaa !13
  br label %69

69:                                               ; preds = %151, %56
  %70 = load i32, ptr %13, align 4, !tbaa !13
  %71 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 2
  %72 = load float, ptr %71, align 4, !tbaa !17
  %73 = fptosi float %72 to i32
  %74 = load i32, ptr %7, align 4, !tbaa !13
  %75 = add nsw i32 %73, %74
  %76 = icmp slt i32 %70, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %69
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %154

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

84:                                               ; preds = %147, %78
  %85 = load i32, ptr %14, align 4, !tbaa !13
  %86 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 1
  %87 = load float, ptr %86, align 4, !tbaa !18
  %88 = fptosi float %87 to i32
  %89 = load i32, ptr %7, align 4, !tbaa !13
  %90 = add nsw i32 %88, %89
  %91 = icmp slt i32 %85, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %84
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %150

93:                                               ; preds = %84
  %94 = load i32, ptr %14, align 4, !tbaa !13
  %95 = sitofp i32 %94 to float
  %96 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 1
  %97 = load float, ptr %96, align 4, !tbaa !18
  %98 = fsub float %95, %97
  %99 = load i32, ptr %14, align 4, !tbaa !13
  %100 = sitofp i32 %99 to float
  %101 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 1
  %102 = load float, ptr %101, align 4, !tbaa !18
  %103 = fsub float %100, %102
  %104 = load i32, ptr %13, align 4, !tbaa !13
  %105 = sitofp i32 %104 to float
  %106 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 2
  %107 = load float, ptr %106, align 4, !tbaa !17
  %108 = fsub float %105, %107
  %109 = load i32, ptr %13, align 4, !tbaa !13
  %110 = sitofp i32 %109 to float
  %111 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 2
  %112 = load float, ptr %111, align 4, !tbaa !17
  %113 = fsub float %110, %112
  %114 = fmul float %108, %113
  %115 = call float @llvm.fmuladd.f32(float %98, float %103, float %114)
  %116 = load float, ptr %12, align 4, !tbaa !14
  %117 = fdiv float %115, %116
  %118 = call noundef float @_ZSt3expf(float noundef %117)
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %class.ImageContent, ptr %119, i32 0, i32 4
  %121 = load ptr, ptr %120, align 8, !tbaa !19
  %122 = load i32, ptr %13, align 4, !tbaa !13
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds ptr, ptr %121, i64 %123
  %125 = load ptr, ptr %124, align 8, !tbaa !5
  %126 = load i32, ptr %14, align 4, !tbaa !13
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds float, ptr %125, i64 %127
  %129 = load float, ptr %128, align 4, !tbaa !14
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = load ptr, ptr %6, align 8, !tbaa !5
  %132 = getelementptr inbounds %class.ImageContent, ptr %131, i32 0, i32 4
  %133 = load ptr, ptr %132, align 8, !tbaa !19
  %134 = load i32, ptr %13, align 4, !tbaa !13
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds ptr, ptr %133, i64 %135
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  %138 = load i32, ptr %14, align 4, !tbaa !13
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds float, ptr %137, i64 %139
  %141 = load float, ptr %140, align 4, !tbaa !14
  %142 = fptosi float %141 to i32
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds float, ptr %130, i64 %143
  %145 = load float, ptr %144, align 4, !tbaa !14
  %146 = call float @llvm.fmuladd.f32(float %118, float %129, float %145)
  store float %146, ptr %144, align 4, !tbaa !14
  br label %147

147:                                              ; preds = %93
  %148 = load i32, ptr %14, align 4, !tbaa !13
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %14, align 4, !tbaa !13
  br label %84, !llvm.loop !21

150:                                              ; preds = %92
  br label %151

151:                                              ; preds = %150
  %152 = load i32, ptr %13, align 4, !tbaa !13
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %13, align 4, !tbaa !13
  br label %69, !llvm.loop !22

154:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store float 0.000000e+00, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 -1, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !13
  br label %155

155:                                              ; preds = %175, %154
  %156 = load i32, ptr %17, align 4, !tbaa !13
  %157 = icmp slt i32 %156, 73
  br i1 %157, label %159, label %158

158:                                              ; preds = %155
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %178

159:                                              ; preds = %155
  %160 = load ptr, ptr %9, align 8, !tbaa !5
  %161 = load i32, ptr %17, align 4, !tbaa !13
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds float, ptr %160, i64 %162
  %164 = load float, ptr %163, align 4, !tbaa !14
  %165 = load float, ptr %15, align 4, !tbaa !14
  %166 = fcmp ogt float %164, %165
  br i1 %166, label %167, label %174

167:                                              ; preds = %159
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = load i32, ptr %17, align 4, !tbaa !13
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds float, ptr %168, i64 %170
  %172 = load float, ptr %171, align 4, !tbaa !14
  store float %172, ptr %15, align 4, !tbaa !14
  %173 = load i32, ptr %17, align 4, !tbaa !13
  store i32 %173, ptr %16, align 4, !tbaa !13
  br label %174

174:                                              ; preds = %167, %159
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %17, align 4, !tbaa !13
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %17, align 4, !tbaa !13
  br label %155, !llvm.loop !23

178:                                              ; preds = %158
  %179 = load i32, ptr %16, align 4, !tbaa !13
  %180 = icmp sge i32 %179, 0
  br i1 %180, label %181, label %188

181:                                              ; preds = %178
  %182 = load i32, ptr %16, align 4, !tbaa !13
  %183 = sitofp i32 %182 to double
  %184 = fmul double 0x401921FB544486E0, %183
  %185 = fdiv double %184, 7.200000e+01
  %186 = fptrunc double %185 to float
  %187 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 19
  store float %186, ptr %187, align 4, !tbaa !24
  br label %188

188:                                              ; preds = %181, %178
  %189 = getelementptr inbounds %class.Corner, ptr %18, i32 0, i32 20
  store i32 1, ptr %189, align 4, !tbaa !25
  %190 = load ptr, ptr %9, align 8, !tbaa !5
  %191 = icmp eq ptr %190, null
  br i1 %191, label %193, label %192

192:                                              ; preds = %188
  call void @_ZdaPv(ptr noundef %190) #9
  br label %193

193:                                              ; preds = %192, %188
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  store i32 0, ptr %8, align 4
  br label %194

194:                                              ; preds = %193, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  %195 = load i32, ptr %8, align 4
  switch i32 %195, label %197 [
    i32 0, label %196
    i32 1, label %196
  ]

196:                                              ; preds = %194, %194, %24
  ret void

197:                                              ; preds = %194
  unreachable
}

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

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #6

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 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 #5 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nobuiltin 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin 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 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!10, !12, i64 8}
!18 = !{!10, !12, i64 4}
!19 = !{!20, !6, i64 16}
!20 = !{!"_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}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = !{!10, !12, i64 76}
!25 = !{!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 uwtable
define dso_local void @_ZN6Corner16computeAngleLoweEP12ImageContentS1_(ptr noundef nonnull align 4 dereferenceable(88) %0, ptr noundef %1, ptr noundef readonly %2) local_unnamed_addr #1 align 2 {
  %4 = icmp eq ptr %1, null
  %5 = icmp eq ptr %2, null
  %or.cond = or i1 %4, %5
  br i1 %or.cond, label %96, label %6

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

16:                                               ; preds = %6
  %17 = tail call noalias noundef nonnull dereferenceable(292) ptr @_Znam(i64 noundef 292) #7
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(292) %17, i8 0, i64 292, i1 false), !tbaa !11
  %18 = load float, ptr %7, align 4, !tbaa !5
  %19 = fmul float %18, %18
  %20 = fmul float %19, -2.000000e+00
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load float, ptr %21, align 4, !tbaa !12
  %23 = fptosi float %22 to i32
  %24 = sub nsw i32 %23, %10
  %25 = add nsw i32 %23, %10
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %.lr.ph57, label %.preheader.preheader

.preheader.preheader:                             ; preds = %._crit_edge, %16
  br label %.preheader

.lr.ph57:                                         ; preds = %16
  %27 = getelementptr inbounds i8, ptr %0, i64 4
  %28 = getelementptr inbounds i8, ptr %1, i64 16
  %29 = getelementptr inbounds i8, ptr %2, i64 16
  %30 = sext i32 %24 to i64
  %.pre = load float, ptr %27, align 4, !tbaa !13
  br label %31

31:                                               ; preds = %.lr.ph57, %._crit_edge
  %32 = phi float [ %22, %.lr.ph57 ], [ %41, %._crit_edge ]
  %33 = phi float [ %.pre, %.lr.ph57 ], [ %42, %._crit_edge ]
  %indvars.iv63 = phi i64 [ %30, %.lr.ph57 ], [ %indvars.iv.next64, %._crit_edge ]
  %34 = fptosi float %33 to i32
  %35 = sub nsw i32 %34, %10
  %36 = add nsw i32 %34, %10
  %37 = icmp slt i32 %35, %36
  br i1 %37, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %31
  %38 = trunc nsw i64 %indvars.iv63 to i32
  %39 = sitofp i32 %38 to float
  %40 = sext i32 %35 to i64
  br label %47

._crit_edge.loopexit:                             ; preds = %47
  %.pre69 = load float, ptr %21, align 4, !tbaa !12
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %31
  %41 = phi float [ %.pre69, %._crit_edge.loopexit ], [ %32, %31 ]
  %42 = phi float [ %73, %._crit_edge.loopexit ], [ %33, %31 ]
  %indvars.iv.next64 = add nsw i64 %indvars.iv63, 1
  %43 = fptosi float %41 to i32
  %44 = add nsw i32 %43, %10
  %45 = sext i32 %44 to i64
  %46 = icmp slt i64 %indvars.iv.next64, %45
  br i1 %46, label %31, label %.preheader.preheader, !llvm.loop !14

47:                                               ; preds = %.lr.ph, %47
  %indvars.iv = phi i64 [ %40, %.lr.ph ], [ %indvars.iv.next, %47 ]
  %48 = phi float [ %33, %.lr.ph ], [ %73, %47 ]
  %49 = trunc nsw i64 %indvars.iv to i32
  %50 = sitofp i32 %49 to float
  %51 = fsub float %50, %48
  %52 = load float, ptr %21, align 4, !tbaa !12
  %53 = fsub float %39, %52
  %54 = fmul float %53, %53
  %55 = tail call float @llvm.fmuladd.f32(float %51, float %51, float %54)
  %56 = fdiv float %55, %20
  %57 = tail call noundef float @_ZSt3expf(float noundef %56)
  %58 = load ptr, ptr %28, align 8, !tbaa !16
  %59 = getelementptr inbounds ptr, ptr %58, i64 %indvars.iv63
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %61 = getelementptr inbounds float, ptr %60, i64 %indvars.iv
  %62 = load float, ptr %61, align 4, !tbaa !11
  %63 = load ptr, ptr %29, align 8, !tbaa !16
  %64 = getelementptr inbounds ptr, ptr %63, i64 %indvars.iv63
  %65 = load ptr, ptr %64, align 8, !tbaa !19
  %66 = getelementptr inbounds float, ptr %65, i64 %indvars.iv
  %67 = load float, ptr %66, align 4, !tbaa !11
  %68 = fptosi float %67 to i32
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds float, ptr %17, i64 %69
  %71 = load float, ptr %70, align 4, !tbaa !11
  %72 = tail call float @llvm.fmuladd.f32(float %57, float %62, float %71)
  store float %72, ptr %70, align 4, !tbaa !11
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %73 = load float, ptr %27, align 4, !tbaa !13
  %74 = fptosi float %73 to i32
  %75 = add nsw i32 %74, %10
  %76 = sext i32 %75 to i64
  %77 = icmp slt i64 %indvars.iv.next, %76
  br i1 %77, label %47, label %._crit_edge.loopexit, !llvm.loop !20

78:                                               ; preds = %.preheader
  %79 = icmp sgt i32 %.1, -1
  br i1 %79, label %88, label %94

.preheader:                                       ; preds = %.preheader.1, %.preheader.preheader
  %indvars.iv66 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next67.1, %.preheader.1 ]
  %.04459 = phi i32 [ -1, %.preheader.preheader ], [ %.1.1, %.preheader.1 ]
  %.04558 = phi float [ 0.000000e+00, %.preheader.preheader ], [ %.146.1, %.preheader.1 ]
  %80 = getelementptr inbounds float, ptr %17, i64 %indvars.iv66
  %81 = load float, ptr %80, align 4, !tbaa !11
  %82 = fcmp ogt float %81, %.04558
  %83 = trunc nuw nsw i64 %indvars.iv66 to i32
  %.1 = select i1 %82, i32 %83, i32 %.04459
  %exitcond.not = icmp eq i64 %indvars.iv66, 72
  br i1 %exitcond.not, label %78, label %.preheader.1, !llvm.loop !21

.preheader.1:                                     ; preds = %.preheader
  %indvars.iv.next67 = or disjoint i64 %indvars.iv66, 1
  %.146 = select i1 %82, float %81, float %.04558
  %84 = getelementptr inbounds float, ptr %17, i64 %indvars.iv.next67
  %85 = load float, ptr %84, align 4, !tbaa !11
  %86 = fcmp ogt float %85, %.146
  %.146.1 = select i1 %86, float %85, float %.146
  %87 = trunc nuw nsw i64 %indvars.iv.next67 to i32
  %.1.1 = select i1 %86, i32 %87, i32 %.1
  %indvars.iv.next67.1 = add nuw nsw i64 %indvars.iv66, 2
  br label %.preheader

88:                                               ; preds = %78
  %89 = uitofp nneg i32 %.1 to double
  %90 = fmul double %89, 0x401921FB544486E0
  %91 = fdiv double %90, 7.200000e+01
  %92 = fptrunc double %91 to float
  %93 = getelementptr inbounds i8, ptr %0, i64 76
  store float %92, ptr %93, align 4, !tbaa !22
  br label %94

94:                                               ; preds = %88, %78
  %95 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 1, ptr %95, align 4, !tbaa !23
  tail call void @_ZdaPv(ptr noundef nonnull %17) #8
  br label %96

96:                                               ; preds = %94, %6, %3
  ret void
}

; Function Attrs: mustprogress 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)) local_unnamed_addr #3 align 2

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #4

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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 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 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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nobuiltin 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !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 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 8}
!13 = !{!6, !10, i64 4}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !18, i64 16}
!17 = !{!"_ZTS12ImageContent", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !18, i64 16, !18, i64 24, !18, i64 32, !18, i64 40, !18, i64 48, !18, i64 56, !18, i64 64, !18, i64 72}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!18, !18, i64 0}
!20 = distinct !{!20, !15}
!21 = distinct !{!21, !15}
!22 = !{!6, !10, i64 76}
!23 = !{!6, !7, i64 80}


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