; LLVM IR from Dynmi/AlexNet :: src (data)

; 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.image = type { i32, i32, i32, ptr }

@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @stbi_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #1

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

; Function Attrs: inlinehint nounwind uwtable
declare dso_local void @make_image(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @horizontal_flip(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @resize_image(ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @load_image(ptr dead_on_unwind noalias writable sret(%struct.image) align 8 %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  store i32 %5, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = call ptr @stbi_load(ptr noundef %22, ptr noundef %12, ptr noundef %13, ptr noundef %14, i32 noundef %23)
  store ptr %24, ptr %15, align 8, !tbaa !5
  %25 = load ptr, ptr %15, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %30, label %27

27:                                               ; preds = %6
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %28)
  call void @exit(i32 noundef 0) #7
  unreachable

30:                                               ; preds = %6
  %31 = load i32, ptr %10, align 4, !tbaa !9
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %35

33:                                               ; preds = %30
  %34 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %34, ptr %14, align 4, !tbaa !9
  br label %35

35:                                               ; preds = %33, %30
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = load i32, ptr %13, align 4, !tbaa !9
  %38 = load i32, ptr %14, align 4, !tbaa !9
  call void @make_image(ptr noundef %0, i32 noundef %36, i32 noundef %37, i32 noundef %38)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %102, %35
  %40 = load i32, ptr %18, align 4, !tbaa !9
  %41 = load i32, ptr %14, align 4, !tbaa !9
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %105

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %98, %44
  %46 = load i32, ptr %20, align 4, !tbaa !9
  %47 = load i32, ptr %13, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %101

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %94, %50
  %52 = load i32, ptr %21, align 4, !tbaa !9
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 8, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %97

56:                                               ; preds = %51
  %57 = load i32, ptr %21, align 4, !tbaa !9
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %20, align 4, !tbaa !9
  %60 = mul nsw i32 %58, %59
  %61 = add nsw i32 %57, %60
  %62 = load i32, ptr %12, align 4, !tbaa !9
  %63 = load i32, ptr %13, align 4, !tbaa !9
  %64 = mul nsw i32 %62, %63
  %65 = load i32, ptr %18, align 4, !tbaa !9
  %66 = mul nsw i32 %64, %65
  %67 = add nsw i32 %61, %66
  store i32 %67, ptr %16, align 4, !tbaa !9
  %68 = load i32, ptr %18, align 4, !tbaa !9
  %69 = load i32, ptr %14, align 4, !tbaa !9
  %70 = load i32, ptr %21, align 4, !tbaa !9
  %71 = mul nsw i32 %69, %70
  %72 = add nsw i32 %68, %71
  %73 = load i32, ptr %14, align 4, !tbaa !9
  %74 = load i32, ptr %12, align 4, !tbaa !9
  %75 = mul nsw i32 %73, %74
  %76 = load i32, ptr %20, align 4, !tbaa !9
  %77 = mul nsw i32 %75, %76
  %78 = add nsw i32 %72, %77
  store i32 %78, ptr %17, align 4, !tbaa !9
  %79 = load ptr, ptr %15, align 8, !tbaa !5
  %80 = load i32, ptr %17, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i8, ptr %79, i64 %81
  %83 = load i8, ptr %82, align 1, !tbaa !11
  %84 = uitofp i8 %83 to float
  %85 = fpext float %84 to double
  %86 = fdiv double %85, 1.275000e+02
  %87 = fsub double %86, 1.000000e+00
  %88 = fptrunc double %87 to float
  %89 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 3
  %90 = load ptr, ptr %89, align 8, !tbaa !12
  %91 = load i32, ptr %16, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds float, ptr %90, i64 %92
  store float %88, ptr %93, align 4, !tbaa !14
  br label %94

94:                                               ; preds = %56
  %95 = load i32, ptr %21, align 4, !tbaa !9
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %21, align 4, !tbaa !9
  br label %51, !llvm.loop !16

97:                                               ; preds = %55
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %20, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %20, align 4, !tbaa !9
  br label %45, !llvm.loop !18

101:                                              ; preds = %49
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %18, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %18, align 4, !tbaa !9
  br label %39, !llvm.loop !19

105:                                              ; preds = %43
  %106 = load ptr, ptr %15, align 8, !tbaa !5
  call void @free(ptr noundef %106) #6
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = icmp ne i32 %107, 0
  br i1 %108, label %109, label %125

109:                                              ; preds = %105
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %125

112:                                              ; preds = %109
  %113 = load i32, ptr %9, align 4, !tbaa !9
  %114 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 1
  %115 = load i32, ptr %114, align 4, !tbaa !20
  %116 = icmp ne i32 %113, %115
  br i1 %116, label %122, label %117

117:                                              ; preds = %112
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = getelementptr inbounds %struct.image, ptr %0, i32 0, i32 0
  %120 = load i32, ptr %119, align 8, !tbaa !21
  %121 = icmp ne i32 %118, %120
  br i1 %121, label %122, label %125

122:                                              ; preds = %117, %112
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = load i32, ptr %8, align 4, !tbaa !9
  call void @resize_image(ptr noundef %0, i32 noundef %123, i32 noundef %124)
  br label %125

125:                                              ; preds = %122, %117, %109, %105
  %126 = load i32, ptr %11, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %128, label %129

128:                                              ; preds = %125
  call void @horizontal_flip(ptr noundef %0)
  br label %129

129:                                              ; preds = %128, %125
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  ret void
}

declare i32 @printf(ptr noundef, ...) #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

attributes #0 = { 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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { "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 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 16}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = !{!13, !10, i64 4}
!21 = !{!13, !10, i64 0}


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

%struct.image = type { i32, i32, i32, ptr }

@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @stbi_load(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint nounwind uwtable
declare dso_local void @make_image(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @horizontal_flip(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @resize_image(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @load_image(ptr dead_on_unwind noalias writable sret(%struct.image) align 8 %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  %10 = call ptr @stbi_load(ptr noundef %1, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, i32 noundef %4)
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %11, label %13

11:                                               ; preds = %6
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %1)
  call void @exit(i32 noundef 0) #7
  unreachable

13:                                               ; preds = %6
  %.not32 = icmp eq i32 %4, 0
  br i1 %.not32, label %._crit_edge54, label %14

._crit_edge54:                                    ; preds = %13
  %.pre = load i32, ptr %9, align 4, !tbaa !5
  br label %15

14:                                               ; preds = %13
  store i32 %4, ptr %9, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %._crit_edge54, %14
  %16 = phi i32 [ %.pre, %._crit_edge54 ], [ %4, %14 ]
  %17 = load i32, ptr %7, align 4, !tbaa !5
  %18 = load i32, ptr %8, align 4, !tbaa !5
  call void @make_image(ptr noundef %0, i32 noundef %17, i32 noundef %18, i32 noundef %16)
  %19 = load i32, ptr %9, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.preheader39.lr.ph, label %._crit_edge

.preheader39.lr.ph:                               ; preds = %15
  %21 = load i32, ptr %8, align 4, !tbaa !5
  %22 = icmp sgt i32 %21, 0
  %23 = load i32, ptr %7, align 4
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = icmp sgt i32 %23, 0
  %or.cond55 = select i1 %22, i1 %25, i1 false
  br i1 %or.cond55, label %.preheader39.us.us.preheader, label %._crit_edge

.preheader39.us.us.preheader:                     ; preds = %.preheader39.lr.ph
  %wide.trip.count = zext nneg i32 %23 to i64
  %26 = add nsw i64 %wide.trip.count, -1
  %27 = mul i32 %21, %23
  %28 = mul i32 %21, %23
  %29 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep59 = getelementptr i8, ptr %10, i64 %wide.trip.count
  %min.iters.check = icmp ult i32 %23, 4
  %ident.check = icmp ne i32 %19, 1
  %30 = trunc nsw i64 %26 to i32
  %31 = icmp ugt i64 %26, 4294967295
  %32 = trunc nsw i64 %26 to i32
  %n.vec = and i64 %wide.trip.count, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader39.us.us

.preheader39.us.us:                               ; preds = %.preheader39.us.us.preheader, %._crit_edge42.split.us.us.us
  %.02843.us.us = phi i32 [ %80, %._crit_edge42.split.us.us.us ], [ 0, %.preheader39.us.us.preheader ]
  %33 = mul i32 %28, %.02843.us.us
  %34 = mul i32 %27, %.02843.us.us
  %35 = mul i32 %21, %.02843.us.us
  %36 = load ptr, ptr %24, align 8
  %scevgep56 = getelementptr i8, ptr %36, i64 %29
  br label %.preheader.us.us.us

.preheader.us.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader39.us.us
  %.02741.us.us.us = phi i32 [ 0, %.preheader39.us.us ], [ %79, %._crit_edge.us.us.us ]
  %37 = mul i32 %23, %.02741.us.us.us
  %38 = add i32 %33, %37
  %39 = sext i32 %38 to i64
  %40 = shl nsw i64 %39, 2
  %scevgep = getelementptr i8, ptr %36, i64 %40
  %scevgep57 = getelementptr i8, ptr %scevgep56, i64 %40
  %41 = add i32 %.02843.us.us, %37
  %42 = sext i32 %41 to i64
  %scevgep58 = getelementptr i8, ptr %10, i64 %42
  %scevgep60 = getelementptr i8, ptr %scevgep59, i64 %42
  %reass.add.us.us.us = add i32 %35, %.02741.us.us.us
  %reass.mul.us.us.us = mul i32 %reass.add.us.us.us, %23
  %43 = mul i32 %23, %.02741.us.us.us
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.scevcheck

vector.scevcheck:                                 ; preds = %.preheader.us.us.us
  %44 = mul i32 %23, %.02741.us.us.us
  %45 = add i32 %.02843.us.us, %44
  %46 = add i32 %34, %44
  %47 = add i32 %46, %30
  %48 = icmp slt i32 %47, %46
  %49 = or i1 %48, %31
  %50 = add i32 %45, %32
  %51 = icmp slt i32 %50, %45
  %52 = or i1 %ident.check, %49
  %53 = or i1 %51, %52
  br i1 %53, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %vector.scevcheck
  %bound0 = icmp ult ptr %scevgep, %scevgep60
  %bound1 = icmp ult ptr %scevgep58, %scevgep57
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %vector.memcheck, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %vector.memcheck ]
  %54 = trunc i64 %index to i32
  %55 = add i32 %reass.mul.us.us.us, %54
  %56 = add i32 %43, %54
  %57 = add i32 %56, %.02843.us.us
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds i8, ptr %10, i64 %58
  %wide.load = load <4 x i8>, ptr %59, align 1, !tbaa !9, !alias.scope !10
  %60 = uitofp <4 x i8> %wide.load to <4 x double>
  %61 = fdiv <4 x double> %60, <double 1.275000e+02, double 1.275000e+02, double 1.275000e+02, double 1.275000e+02>
  %62 = fadd <4 x double> %61, <double -1.000000e+00, double -1.000000e+00, double -1.000000e+00, double -1.000000e+00>
  %63 = fptrunc <4 x double> %62 to <4 x float>
  %64 = sext i32 %55 to i64
  %65 = getelementptr inbounds float, ptr %36, i64 %64
  store <4 x float> %63, ptr %65, align 4, !tbaa !13, !alias.scope !15, !noalias !10
  %index.next = add nuw i64 %index, 4
  %66 = icmp eq i64 %index.next, %n.vec
  br i1 %66, label %middle.block, label %vector.body, !llvm.loop !17

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

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %vector.scevcheck, %.preheader.us.us.us
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %vector.scevcheck ], [ 0, %.preheader.us.us.us ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %67 = trunc nuw nsw i64 %indvars.iv to i32
  %68 = add i32 %reass.mul.us.us.us, %67
  %reass.add37.us.us.us = add i32 %43, %67
  %reass.mul38.us.us.us = mul i32 %reass.add37.us.us.us, %19
  %69 = add i32 %reass.mul38.us.us.us, %.02843.us.us
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds i8, ptr %10, i64 %70
  %72 = load i8, ptr %71, align 1, !tbaa !9
  %73 = uitofp i8 %72 to double
  %74 = fdiv double %73, 1.275000e+02
  %75 = fadd double %74, -1.000000e+00
  %76 = fptrunc double %75 to float
  %77 = sext i32 %68 to i64
  %78 = getelementptr inbounds float, ptr %36, i64 %77
  store float %76, ptr %78, align 4, !tbaa !13
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us.us.us, label %scalar.ph, !llvm.loop !21

._crit_edge.us.us.us:                             ; preds = %scalar.ph, %middle.block
  %79 = add nuw nsw i32 %.02741.us.us.us, 1
  %exitcond52.not = icmp eq i32 %79, %21
  br i1 %exitcond52.not, label %._crit_edge42.split.us.us.us, label %.preheader.us.us.us, !llvm.loop !22

._crit_edge42.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %80 = add nuw nsw i32 %.02843.us.us, 1
  %exitcond53.not = icmp eq i32 %80, %19
  br i1 %exitcond53.not, label %._crit_edge, label %.preheader39.us.us, !llvm.loop !23

._crit_edge:                                      ; preds = %._crit_edge42.split.us.us.us, %.preheader39.lr.ph, %15
  call void @free(ptr noundef nonnull %10) #6
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = icmp ne i32 %81, 0
  %83 = load i32, ptr %7, align 4
  %84 = icmp ne i32 %83, 0
  %or.cond = select i1 %82, i1 %84, i1 false
  br i1 %or.cond, label %85, label %90

85:                                               ; preds = %._crit_edge
  %86 = getelementptr inbounds i8, ptr %0, i64 4
  %87 = load i32, ptr %86, align 4, !tbaa !24
  %.not33 = icmp eq i32 %87, %3
  %88 = load i32, ptr %0, align 8
  %.not34 = icmp eq i32 %88, %2
  %or.cond36 = select i1 %.not33, i1 %.not34, i1 false
  br i1 %or.cond36, label %90, label %89

89:                                               ; preds = %85
  call void @resize_image(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %2)
  br label %90

90:                                               ; preds = %85, %89, %._crit_edge
  %.not35 = icmp eq i32 %5, 0
  br i1 %.not35, label %92, label %91

91:                                               ; preds = %90
  call void @horizontal_flip(ptr noundef %0)
  br label %92

92:                                               ; preds = %91, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  ret void
}

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

attributes #0 = { 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 #1 = { 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11}
!11 = distinct !{!11, !12}
!12 = distinct !{!12, !"LVerDomain"}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!16}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !18, !19, !20}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!"llvm.loop.isvectorized", i32 1}
!20 = !{!"llvm.loop.unroll.runtime.disable"}
!21 = distinct !{!21, !18, !19}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = !{!25, !6, i64 4}
!25 = !{!"", !6, i64 0, !6, i64 4, !6, i64 8, !26, i64 16}
!26 = !{!"any pointer", !7, i64 0}


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