; LLVM IR from ox-vgg/vise :: src/search_engine/relja_retrival/external/KMCode_relja/ImageContent/ImageConten_e00d39e0 (ZN12ImageContent10float2charEv)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.ImageContent = type { i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContent9initUCharEjj(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) #2 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12ImageContent10float2charEv(ptr noundef nonnull align 8 dereferenceable(80) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  %10 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 3
  %11 = load i32, ptr %10, align 4, !tbaa !9
  %12 = icmp eq i32 %11, 2
  br i1 %12, label %13, label %168

13:                                               ; preds = %1
  %14 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 1
  %15 = load i32, ptr %14, align 4, !tbaa !12
  %16 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 0
  %17 = load i32, ptr %16, align 8, !tbaa !13
  call void @_ZN12ImageContent9initUCharEjj(ptr noundef nonnull align 8 dereferenceable(80) %9, i32 noundef %15, i32 noundef %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  %18 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 4
  %19 = load ptr, ptr %18, align 8, !tbaa !14
  %20 = getelementptr inbounds ptr, ptr %19, i64 0
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = getelementptr inbounds float, ptr %21, i64 0
  %23 = load float, ptr %22, align 4, !tbaa !15
  store float %23, ptr %3, align 4, !tbaa !15
  %24 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 4
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %26 = getelementptr inbounds ptr, ptr %25, i64 0
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds float, ptr %27, i64 0
  %29 = load float, ptr %28, align 4, !tbaa !15
  store float %29, ptr %4, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !17
  br label %30

30:                                               ; preds = %78, %13
  %31 = load i32, ptr %5, align 4, !tbaa !17
  %32 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 2
  %33 = load i32, ptr %32, align 8, !tbaa !18
  %34 = icmp ult i32 %31, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %81

36:                                               ; preds = %30
  %37 = load float, ptr %3, align 4, !tbaa !15
  %38 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 4
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = getelementptr inbounds ptr, ptr %39, i64 0
  %41 = load ptr, ptr %40, align 8, !tbaa !5
  %42 = load i32, ptr %5, align 4, !tbaa !17
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds float, ptr %41, i64 %43
  %45 = load float, ptr %44, align 4, !tbaa !15
  %46 = fcmp olt float %37, %45
  br i1 %46, label %47, label %56

47:                                               ; preds = %36
  %48 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 4
  %49 = load ptr, ptr %48, align 8, !tbaa !14
  %50 = getelementptr inbounds ptr, ptr %49, i64 0
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = load i32, ptr %5, align 4, !tbaa !17
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds float, ptr %51, i64 %53
  %55 = load float, ptr %54, align 4, !tbaa !15
  store float %55, ptr %3, align 4, !tbaa !15
  br label %77

56:                                               ; preds = %36
  %57 = load float, ptr %4, align 4, !tbaa !15
  %58 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 4
  %59 = load ptr, ptr %58, align 8, !tbaa !14
  %60 = getelementptr inbounds ptr, ptr %59, i64 0
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load i32, ptr %5, align 4, !tbaa !17
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds float, ptr %61, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !15
  %66 = fcmp ogt float %57, %65
  br i1 %66, label %67, label %76

67:                                               ; preds = %56
  %68 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 4
  %69 = load ptr, ptr %68, align 8, !tbaa !14
  %70 = getelementptr inbounds ptr, ptr %69, i64 0
  %71 = load ptr, ptr %70, align 8, !tbaa !5
  %72 = load i32, ptr %5, align 4, !tbaa !17
  %73 = zext i32 %72 to i64
  %74 = getelementptr inbounds float, ptr %71, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !15
  store float %75, ptr %4, align 4, !tbaa !15
  br label %76

76:                                               ; preds = %67, %56
  br label %77

77:                                               ; preds = %76, %47
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %5, align 4, !tbaa !17
  %80 = add i32 %79, 1
  store i32 %80, ptr %5, align 4, !tbaa !17
  br label %30, !llvm.loop !19

81:                                               ; preds = %35
  %82 = load float, ptr %4, align 4, !tbaa !15
  %83 = fcmp olt float %82, 0.000000e+00
  br i1 %83, label %87, label %84

84:                                               ; preds = %81
  %85 = load float, ptr %3, align 4, !tbaa !15
  %86 = fcmp ogt float %85, 2.550000e+02
  br i1 %86, label %87, label %138

87:                                               ; preds = %84, %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store float 0.000000e+00, ptr %6, align 4, !tbaa !15
  %88 = load float, ptr %3, align 4, !tbaa !15
  %89 = load float, ptr %4, align 4, !tbaa !15
  %90 = fcmp une float %88, %89
  br i1 %90, label %91, label %98

91:                                               ; preds = %87
  %92 = load float, ptr %3, align 4, !tbaa !15
  %93 = load float, ptr %4, align 4, !tbaa !15
  %94 = fsub float %92, %93
  %95 = fpext float %94 to double
  %96 = fdiv double 2.550000e+02, %95
  %97 = fptrunc double %96 to float
  store float %97, ptr %6, align 4, !tbaa !15
  br label %98

98:                                               ; preds = %91, %87
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.28)
  %100 = load float, ptr %4, align 4, !tbaa !15
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %99, float noundef %100)
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %101, ptr noundef @.str.29)
  %103 = load float, ptr %3, align 4, !tbaa !15
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %102, float noundef %103)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef @.str.30)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !17
  br label %107

107:                                              ; preds = %134, %98
  %108 = load i32, ptr %7, align 4, !tbaa !17
  %109 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 2
  %110 = load i32, ptr %109, align 8, !tbaa !18
  %111 = icmp ult i32 %108, %110
  br i1 %111, label %113, label %112

112:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %137

113:                                              ; preds = %107
  %114 = load float, ptr %6, align 4, !tbaa !15
  %115 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 4
  %116 = load ptr, ptr %115, align 8, !tbaa !14
  %117 = getelementptr inbounds ptr, ptr %116, i64 0
  %118 = load ptr, ptr %117, align 8, !tbaa !5
  %119 = load i32, ptr %7, align 4, !tbaa !17
  %120 = zext i32 %119 to i64
  %121 = getelementptr inbounds float, ptr %118, i64 %120
  %122 = load float, ptr %121, align 4, !tbaa !15
  %123 = load float, ptr %4, align 4, !tbaa !15
  %124 = fsub float %122, %123
  %125 = fmul float %114, %124
  %126 = fptoui float %125 to i8
  %127 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 8
  %128 = load ptr, ptr %127, align 8, !tbaa !21
  %129 = getelementptr inbounds ptr, ptr %128, i64 0
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  %131 = load i32, ptr %7, align 4, !tbaa !17
  %132 = zext i32 %131 to i64
  %133 = getelementptr inbounds i8, ptr %130, i64 %132
  store i8 %126, ptr %133, align 1, !tbaa !22
  br label %134

134:                                              ; preds = %113
  %135 = load i32, ptr %7, align 4, !tbaa !17
  %136 = add i32 %135, 1
  store i32 %136, ptr %7, align 4, !tbaa !17
  br label %107, !llvm.loop !23

137:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %166

138:                                              ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !17
  br label %139

139:                                              ; preds = %162, %138
  %140 = load i32, ptr %8, align 4, !tbaa !17
  %141 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 2
  %142 = load i32, ptr %141, align 8, !tbaa !18
  %143 = icmp ult i32 %140, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %165

145:                                              ; preds = %139
  %146 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 4
  %147 = load ptr, ptr %146, align 8, !tbaa !14
  %148 = getelementptr inbounds ptr, ptr %147, i64 0
  %149 = load ptr, ptr %148, align 8, !tbaa !5
  %150 = load i32, ptr %8, align 4, !tbaa !17
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %149, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !15
  %154 = fptoui float %153 to i8
  %155 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 8
  %156 = load ptr, ptr %155, align 8, !tbaa !21
  %157 = getelementptr inbounds ptr, ptr %156, i64 0
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load i32, ptr %8, align 4, !tbaa !17
  %160 = zext i32 %159 to i64
  %161 = getelementptr inbounds i8, ptr %158, i64 %160
  store i8 %154, ptr %161, align 1, !tbaa !22
  br label %162

162:                                              ; preds = %145
  %163 = load i32, ptr %8, align 4, !tbaa !17
  %164 = add i32 %163, 1
  store i32 %164, ptr %8, align 4, !tbaa !17
  br label %139, !llvm.loop !24

165:                                              ; preds = %144
  br label %166

166:                                              ; preds = %165, %137
  %167 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 3
  store i32 3, ptr %167, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %168

168:                                              ; preds = %166, %1
  %169 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 3
  %170 = load i32, ptr %169, align 4, !tbaa !9
  %171 = icmp eq i32 %170, 1
  br i1 %171, label %184, label %172

172:                                              ; preds = %168
  %173 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 3
  %174 = load i32, ptr %173, align 4, !tbaa !9
  %175 = icmp eq i32 %174, 5
  br i1 %175, label %184, label %176

176:                                              ; preds = %172
  %177 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 3
  %178 = load i32, ptr %177, align 4, !tbaa !9
  %179 = icmp eq i32 %178, 3
  br i1 %179, label %184, label %180

180:                                              ; preds = %176
  %181 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 3
  %182 = load i32, ptr %181, align 4, !tbaa !9
  %183 = icmp eq i32 %182, 12
  br i1 %183, label %184, label %185

184:                                              ; preds = %180, %176, %172, %168
  br label %191

185:                                              ; preds = %180
  %186 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.31)
  %187 = getelementptr inbounds %class.ImageContent, ptr %9, i32 0, i32 3
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %186, i32 noundef %188)
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %191

191:                                              ; preds = %185, %184
  ret void
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint 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 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 12}
!10 = !{!"_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}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 0}
!14 = !{!10, !6, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !11, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!10, !6, i64 48}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.28 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN12ImageContent9initUCharEjj(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12ImageContent10float2charEv(ptr noundef nonnull align 8 dereferenceable(80) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 12
  %3 = load i32, ptr %2, align 4, !tbaa !5
  switch i32 %3, label %77 [
    i32 2, label %4
    i32 1, label %82
    i32 5, label %82
    i32 3, label %82
    i32 12, label %82
  ]

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %0, i64 4
  %6 = load i32, ptr %5, align 4, !tbaa !11
  %7 = load i32, ptr %0, align 8, !tbaa !12
  tail call void @_ZN12ImageContent9initUCharEjj(ptr noundef nonnull align 8 dereferenceable(80) %0, i32 noundef %6, i32 noundef %7)
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = load ptr, ptr %9, align 8, !tbaa !14
  %11 = load float, ptr %10, align 4, !tbaa !15
  %12 = getelementptr inbounds i8, ptr %0, i64 8
  %13 = load i32, ptr %12, align 8, !tbaa !17
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %4
  %wide.trip.count = zext i32 %13 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %.lr.ph

._crit_edge.unr-lcssa:                            ; preds = %38, %.lr.ph.preheader
  %.132.lcssa.ph = phi float [ poison, %.lr.ph.preheader ], [ %.132.1, %38 ]
  %.1.lcssa.ph = phi float [ poison, %.lr.ph.preheader ], [ %.1.1, %38 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next.1, %38 ]
  %.03038.unr = phi float [ %11, %.lr.ph.preheader ], [ %.1.1, %38 ]
  %.03137.unr = phi float [ %11, %.lr.ph.preheader ], [ %.132.1, %38 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa
  %15 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.unr
  %16 = load float, ptr %15, align 4, !tbaa !15
  %17 = fcmp olt float %.03137.unr, %16
  br i1 %17, label %._crit_edge, label %18

18:                                               ; preds = %.lr.ph.epil
  %19 = fcmp ogt float %.03038.unr, %16
  br i1 %19, label %20, label %._crit_edge

20:                                               ; preds = %18
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %18, %20, %._crit_edge.unr-lcssa
  %.132.lcssa = phi float [ %.132.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.03137.unr, %20 ], [ %.03137.unr, %18 ], [ %16, %.lr.ph.epil ]
  %.1.lcssa = phi float [ %.1.lcssa.ph, %._crit_edge.unr-lcssa ], [ %16, %20 ], [ %.03038.unr, %18 ], [ %.03038.unr, %.lr.ph.epil ]
  %21 = fcmp olt float %.1.lcssa, 0.000000e+00
  %22 = fcmp ogt float %.132.lcssa, 2.550000e+02
  %or.cond = or i1 %21, %22
  br i1 %or.cond, label %39, label %.preheader

._crit_edge.thread:                               ; preds = %4
  %23 = fcmp olt float %11, 0.000000e+00
  %24 = fcmp ogt float %11, 2.550000e+02
  %or.cond58 = or i1 %23, %24
  br i1 %or.cond58, label %39, label %.thread

.preheader:                                       ; preds = %._crit_edge
  br i1 %.not, label %.thread, label %.lr.ph42

.lr.ph42:                                         ; preds = %.preheader
  %25 = getelementptr inbounds i8, ptr %0, i64 48
  br label %65

.lr.ph:                                           ; preds = %38, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %38 ]
  %.03038 = phi float [ %11, %.lr.ph.preheader.new ], [ %.1.1, %38 ]
  %.03137 = phi float [ %11, %.lr.ph.preheader.new ], [ %.132.1, %38 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %38 ]
  %26 = getelementptr inbounds float, ptr %10, i64 %indvars.iv
  %27 = load float, ptr %26, align 4, !tbaa !15
  %28 = fcmp olt float %.03137, %27
  br i1 %28, label %.lr.ph.1, label %29

29:                                               ; preds = %.lr.ph
  %30 = fcmp ogt float %.03038, %27
  br i1 %30, label %31, label %.lr.ph.1

31:                                               ; preds = %29
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %31, %29
  %.132 = phi float [ %.03137, %31 ], [ %.03137, %29 ], [ %27, %.lr.ph ]
  %.1 = phi float [ %27, %31 ], [ %.03038, %29 ], [ %.03038, %.lr.ph ]
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %32 = getelementptr inbounds float, ptr %10, i64 %indvars.iv.next
  %33 = load float, ptr %32, align 4, !tbaa !15
  %34 = fcmp olt float %.132, %33
  br i1 %34, label %38, label %35

35:                                               ; preds = %.lr.ph.1
  %36 = fcmp ogt float %.1, %33
  br i1 %36, label %37, label %38

37:                                               ; preds = %35
  br label %38

38:                                               ; preds = %37, %35, %.lr.ph.1
  %.132.1 = phi float [ %.132, %37 ], [ %.132, %35 ], [ %33, %.lr.ph.1 ]
  %.1.1 = phi float [ %33, %37 ], [ %.1, %35 ], [ %.1, %.lr.ph.1 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !18

39:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %.030.lcssa60 = phi float [ %11, %._crit_edge.thread ], [ %.1.lcssa, %._crit_edge ]
  %.031.lcssa59 = phi float [ %11, %._crit_edge.thread ], [ %.132.lcssa, %._crit_edge ]
  %40 = fcmp une float %.031.lcssa59, %.030.lcssa60
  %41 = fsub float %.031.lcssa59, %.030.lcssa60
  %42 = fdiv float 2.550000e+02, %41
  %.028 = select i1 %40, float %42, float 0.000000e+00
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.28)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %43, float noundef %.030.lcssa60)
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @.str.29)
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8) %45, float noundef %.031.lcssa59)
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @.str.30)
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %49 = load i32, ptr %12, align 8, !tbaa !17
  %.not47 = icmp eq i32 %49, 0
  br i1 %.not47, label %.thread, label %.lr.ph45

.lr.ph45:                                         ; preds = %39
  %50 = getelementptr inbounds i8, ptr %0, i64 48
  br label %51

51:                                               ; preds = %.lr.ph45, %51
  %indvars.iv53 = phi i64 [ 0, %.lr.ph45 ], [ %indvars.iv.next54, %51 ]
  %52 = load ptr, ptr %8, align 8, !tbaa !13
  %53 = load ptr, ptr %52, align 8, !tbaa !14
  %54 = getelementptr inbounds float, ptr %53, i64 %indvars.iv53
  %55 = load float, ptr %54, align 4, !tbaa !15
  %56 = fsub float %55, %.030.lcssa60
  %57 = fmul float %.028, %56
  %58 = fptoui float %57 to i8
  %59 = load ptr, ptr %50, align 8, !tbaa !20
  %60 = load ptr, ptr %59, align 8, !tbaa !14
  %61 = getelementptr inbounds i8, ptr %60, i64 %indvars.iv53
  store i8 %58, ptr %61, align 1, !tbaa !21
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %62 = load i32, ptr %12, align 8, !tbaa !17
  %63 = zext i32 %62 to i64
  %64 = icmp ult i64 %indvars.iv.next54, %63
  br i1 %64, label %51, label %.thread, !llvm.loop !22

65:                                               ; preds = %.lr.ph42, %65
  %indvars.iv50 = phi i64 [ 0, %.lr.ph42 ], [ %indvars.iv.next51, %65 ]
  %66 = load ptr, ptr %8, align 8, !tbaa !13
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = getelementptr inbounds float, ptr %67, i64 %indvars.iv50
  %69 = load float, ptr %68, align 4, !tbaa !15
  %70 = fptoui float %69 to i8
  %71 = load ptr, ptr %25, align 8, !tbaa !20
  %72 = load ptr, ptr %71, align 8, !tbaa !14
  %73 = getelementptr inbounds i8, ptr %72, i64 %indvars.iv50
  store i8 %70, ptr %73, align 1, !tbaa !21
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %74 = load i32, ptr %12, align 8, !tbaa !17
  %75 = zext i32 %74 to i64
  %76 = icmp ult i64 %indvars.iv.next51, %75
  br i1 %76, label %65, label %.thread, !llvm.loop !23

.thread:                                          ; preds = %65, %51, %._crit_edge.thread, %.preheader, %39
  store i32 3, ptr %2, align 4, !tbaa !5
  br label %82

77:                                               ; preds = %1
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.31)
  %79 = load i32, ptr %2, align 4, !tbaa !5
  %80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %78, i32 noundef %79)
  %81 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %82

82:                                               ; preds = %1, %1, %1, %1, %.thread, %77
  ret void
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEf(ptr noundef nonnull align 8 dereferenceable(8), float noundef) local_unnamed_addr #1 align 2

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


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