; LLVM IR from OAID/AutoKernel :: AutoSearch/src/adams2019 (test_function_dag)

; 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.halide_buffer_t = type { i64, ptr, ptr, i64, %struct.halide_type_t, i32, ptr, ptr }
%struct.halide_type_t = type { i8, i8, i16 }
%struct.halide_dimension_t = type { i32, i32, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local i32 @mul_by_two(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = call noundef zeroext i1 @_ZNK15halide_buffer_t15is_bounds_queryEv(ptr noundef nonnull align 8 dereferenceable(56) %12)
  br i1 %13, label %14, label %36

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

15:                                               ; preds = %32, %14
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = icmp slt i32 %16, 2
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %35

19:                                               ; preds = %15
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.halide_buffer_t, ptr %20, i32 0, i32 6
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds %struct.halide_dimension_t, ptr %22, i64 %24
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.halide_buffer_t, ptr %26, i32 0, i32 6
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds %struct.halide_dimension_t, ptr %28, i64 %30
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %31, ptr align 4 %25, i64 16, i1 false), !tbaa.struct !17
  br label %32

32:                                               ; preds = %19
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %6, align 4, !tbaa !9
  br label %15, !llvm.loop !18

35:                                               ; preds = %18
  store i32 0, ptr %3, align 4
  br label %117

36:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %113, %36
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.halide_buffer_t, ptr %39, i32 0, i32 6
  %41 = load ptr, ptr %40, align 8, !tbaa !11
  %42 = getelementptr inbounds %struct.halide_dimension_t, ptr %41, i64 1
  %43 = getelementptr inbounds %struct.halide_dimension_t, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 4, !tbaa !20
  %45 = icmp slt i32 %38, %44
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %48

48:                                               ; preds = %109, %47
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.halide_buffer_t, ptr %50, i32 0, i32 6
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = getelementptr inbounds %struct.halide_dimension_t, ptr %52, i64 0
  %54 = getelementptr inbounds %struct.halide_dimension_t, ptr %53, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !20
  %56 = icmp slt i32 %49, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %48
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %112

58:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.halide_buffer_t, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !22
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.halide_buffer_t, ptr %63, i32 0, i32 6
  %65 = load ptr, ptr %64, align 8, !tbaa !11
  %66 = getelementptr inbounds %struct.halide_dimension_t, ptr %65, i64 0
  %67 = getelementptr inbounds %struct.halide_dimension_t, ptr %66, i32 0, i32 2
  %68 = load i32, ptr %67, align 4, !tbaa !23
  %69 = mul nsw i32 %62, %68
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds float, ptr %61, i64 %70
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.halide_buffer_t, ptr %73, i32 0, i32 6
  %75 = load ptr, ptr %74, align 8, !tbaa !11
  %76 = getelementptr inbounds %struct.halide_dimension_t, ptr %75, i64 1
  %77 = getelementptr inbounds %struct.halide_dimension_t, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 4, !tbaa !23
  %79 = mul nsw i32 %72, %78
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds float, ptr %71, i64 %80
  store ptr %81, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.halide_buffer_t, ptr %82, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !22
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.halide_buffer_t, ptr %86, i32 0, i32 6
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = getelementptr inbounds %struct.halide_dimension_t, ptr %88, i64 0
  %90 = getelementptr inbounds %struct.halide_dimension_t, ptr %89, i32 0, i32 2
  %91 = load i32, ptr %90, align 4, !tbaa !23
  %92 = mul nsw i32 %85, %91
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds float, ptr %84, i64 %93
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.halide_buffer_t, ptr %96, i32 0, i32 6
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  %99 = getelementptr inbounds %struct.halide_dimension_t, ptr %98, i64 1
  %100 = getelementptr inbounds %struct.halide_dimension_t, ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 4, !tbaa !23
  %102 = mul nsw i32 %95, %101
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds float, ptr %94, i64 %103
  store ptr %104, ptr %11, align 8, !tbaa !5
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load float, ptr %105, align 4, !tbaa !24
  %107 = fmul float 2.000000e+00, %106
  %108 = load ptr, ptr %10, align 8, !tbaa !5
  store float %107, ptr %108, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %109

109:                                              ; preds = %58
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %9, align 4, !tbaa !9
  br label %48, !llvm.loop !26

112:                                              ; preds = %57
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %7, align 4, !tbaa !9
  br label %37, !llvm.loop !27

116:                                              ; preds = %46
  store i32 0, ptr %3, align 4
  br label %117

117:                                              ; preds = %116, %35
  %118 = load i32, ptr %3, align 4
  ret i32 %118
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK15halide_buffer_t15is_bounds_queryEv(ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

attributes #0 = { 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 = { alwaysinline 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 40}
!12 = !{!"_ZTS15halide_buffer_t", !13, i64 0, !6, i64 8, !6, i64 16, !13, i64 24, !14, i64 32, !10, i64 36, !6, i64 40, !6, i64 48}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTS13halide_type_t", !15, i64 0, !7, i64 1, !16, i64 2}
!15 = !{!"_ZTS18halide_type_code_t", !7, i64 0}
!16 = !{!"short", !7, i64 0}
!17 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !10, i64 4}
!21 = !{!"_ZTS18halide_dimension_t", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!22 = !{!12, !6, i64 16}
!23 = !{!21, !10, i64 8}
!24 = !{!25, !25, i64 0}
!25 = !{!"float", !7, i64 0}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @mul_by_two(ptr noundef nonnull %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = tail call noundef zeroext i1 @_ZNK15halide_buffer_t15is_bounds_queryEv(ptr noundef nonnull align 8 dereferenceable(56) %0)
  br i1 %3, label %.preheader, label %.preheader29

.preheader29:                                     ; preds = %2
  %4 = getelementptr inbounds i8, ptr %0, i64 40
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 20
  %7 = load i32, ptr %6, align 4, !tbaa !15
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.preheader28.lr.ph, label %.loopexit

.preheader28.lr.ph:                               ; preds = %.preheader29
  %9 = getelementptr inbounds i8, ptr %5, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !15
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.preheader28.lr.ph.split.us, label %.loopexit

.preheader28.lr.ph.split.us:                      ; preds = %.preheader28.lr.ph
  %12 = getelementptr inbounds i8, ptr %5, i64 24
  %13 = getelementptr inbounds i8, ptr %5, i64 8
  %14 = getelementptr inbounds i8, ptr %0, i64 16
  %15 = getelementptr inbounds i8, ptr %1, i64 40
  %16 = getelementptr inbounds i8, ptr %1, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !17
  %18 = load ptr, ptr %15, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 8
  %20 = load i32, ptr %19, align 4, !tbaa !18
  %21 = getelementptr inbounds i8, ptr %18, i64 24
  %22 = load i32, ptr %21, align 4, !tbaa !18
  %23 = load ptr, ptr %14, align 8, !tbaa !17
  %24 = load i32, ptr %13, align 4, !tbaa !18
  %25 = load i32, ptr %12, align 4, !tbaa !18
  %26 = sext i32 %20 to i64
  %27 = sext i32 %24 to i64
  %28 = sext i32 %22 to i64
  %29 = sext i32 %25 to i64
  %wide.trip.count42 = zext nneg i32 %7 to i64
  %wide.trip.count = zext nneg i32 %10 to i64
  %30 = add nsw i64 %wide.trip.count42, -1
  %31 = mul nsw i64 %30, %28
  %32 = add i64 %31, %wide.trip.count
  %33 = shl i64 %32, 2
  %scevgep = getelementptr i8, ptr %17, i64 %33
  %34 = mul nsw i64 %30, %29
  %35 = add i64 %34, %wide.trip.count
  %36 = shl i64 %35, 2
  %scevgep48 = getelementptr i8, ptr %23, i64 %36
  %min.iters.check = icmp ult i32 %10, 12
  %ident.check = icmp ne i32 %20, 1
  %ident.check47 = icmp ne i32 %24, 1
  %37 = or i1 %ident.check, %ident.check47
  %bound0 = icmp ult ptr %17, %scevgep48
  %bound1 = icmp ult ptr %23, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  %38 = or i32 %22, %25
  %39 = icmp slt i32 %38, 0
  %40 = or i1 %found.conflict, %39
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  %41 = add nsw i64 %wide.trip.count, -1
  br label %.preheader28.us

.preheader28.us:                                  ; preds = %._crit_edge.us, %.preheader28.lr.ph.split.us
  %indvars.iv39 = phi i64 [ %indvars.iv.next40, %._crit_edge.us ], [ 0, %.preheader28.lr.ph.split.us ]
  %42 = mul nsw i64 %indvars.iv39, %28
  %invariant.gep.us = getelementptr float, ptr %17, i64 %42
  %43 = mul nsw i64 %indvars.iv39, %29
  %invariant.gep32.us = getelementptr float, ptr %23, i64 %43
  %brmerge = select i1 %min.iters.check, i1 true, i1 %37
  %brmerge51 = select i1 %brmerge, i1 true, i1 %40
  br i1 %brmerge51, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader28.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader28.us ]
  %44 = getelementptr float, ptr %invariant.gep.us, i64 %index
  %45 = getelementptr float, ptr %invariant.gep32.us, i64 %index
  %46 = getelementptr i8, ptr %45, i64 16
  %wide.load = load <4 x float>, ptr %45, align 4, !tbaa !19, !alias.scope !21
  %wide.load50 = load <4 x float>, ptr %46, align 4, !tbaa !19, !alias.scope !21
  %47 = fmul <4 x float> %wide.load, <float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00>
  %48 = fmul <4 x float> %wide.load50, <float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00>
  %49 = getelementptr i8, ptr %44, i64 16
  store <4 x float> %47, ptr %44, align 4, !tbaa !19, !alias.scope !24, !noalias !21
  store <4 x float> %48, ptr %49, align 4, !tbaa !19, !alias.scope !24, !noalias !21
  %index.next = add nuw i64 %index, 8
  %50 = icmp eq i64 %index.next, %n.vec
  br i1 %50, label %middle.block, label %vector.body, !llvm.loop !26

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

scalar.ph.preheader:                              ; preds = %.preheader28.us, %middle.block
  %indvars.iv.ph = phi i64 [ 0, %.preheader28.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %51 = mul nsw i64 %indvars.iv.ph, %26
  %gep.us.prol = getelementptr float, ptr %invariant.gep.us, i64 %51
  %52 = mul nsw i64 %indvars.iv.ph, %27
  %gep33.us.prol = getelementptr float, ptr %invariant.gep32.us, i64 %52
  %53 = load float, ptr %gep33.us.prol, align 4, !tbaa !19
  %54 = fmul float %53, 2.000000e+00
  store float %54, ptr %gep.us.prol, align 4, !tbaa !19
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %55 = icmp eq i64 %indvars.iv.ph, %41
  br i1 %55, label %._crit_edge.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %56 = mul nsw i64 %indvars.iv, %26
  %gep.us = getelementptr float, ptr %invariant.gep.us, i64 %56
  %57 = mul nsw i64 %indvars.iv, %27
  %gep33.us = getelementptr float, ptr %invariant.gep32.us, i64 %57
  %58 = load float, ptr %gep33.us, align 4, !tbaa !19
  %59 = fmul float %58, 2.000000e+00
  store float %59, ptr %gep.us, align 4, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %60 = mul nsw i64 %indvars.iv.next, %26
  %gep.us.1 = getelementptr float, ptr %invariant.gep.us, i64 %60
  %61 = mul nsw i64 %indvars.iv.next, %27
  %gep33.us.1 = getelementptr float, ptr %invariant.gep32.us, i64 %61
  %62 = load float, ptr %gep33.us.1, align 4, !tbaa !19
  %63 = fmul float %62, 2.000000e+00
  store float %63, ptr %gep.us.1, align 4, !tbaa !19
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge.us, label %scalar.ph, !llvm.loop !30

._crit_edge.us:                                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next40 = add nuw nsw i64 %indvars.iv39, 1
  %exitcond43.not = icmp eq i64 %indvars.iv.next40, %wide.trip.count42
  br i1 %exitcond43.not, label %.loopexit, label %.preheader28.us, !llvm.loop !31

.preheader:                                       ; preds = %2
  %64 = getelementptr inbounds i8, ptr %1, i64 40
  %65 = getelementptr inbounds i8, ptr %0, i64 40
  %66 = load ptr, ptr %64, align 8, !tbaa !5
  %67 = load ptr, ptr %65, align 8, !tbaa !5
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %67, ptr noundef nonnull align 4 dereferenceable(16) %66, i64 16, i1 false), !tbaa.struct !32
  %68 = load ptr, ptr %64, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 16
  %70 = load ptr, ptr %65, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 16
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %71, ptr noundef nonnull align 4 dereferenceable(16) %69, i64 16, i1 false), !tbaa.struct !32
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge.us, %.preheader28.lr.ph, %.preheader, %.preheader29
  ret i32 0
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK15halide_buffer_t15is_bounds_queryEv(ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

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 = { alwaysinline 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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 40}
!6 = !{!"_ZTS15halide_buffer_t", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !14, i64 36, !10, i64 40, !10, i64 48}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS13halide_type_t", !12, i64 0, !8, i64 1, !13, i64 2}
!12 = !{!"_ZTS18halide_type_code_t", !8, i64 0}
!13 = !{!"short", !8, i64 0}
!14 = !{!"int", !8, i64 0}
!15 = !{!16, !14, i64 4}
!16 = !{!"_ZTS18halide_dimension_t", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12}
!17 = !{!6, !10, i64 16}
!18 = !{!16, !14, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !8, i64 0}
!21 = !{!22}
!22 = distinct !{!22, !23}
!23 = distinct !{!23, !"LVerDomain"}
!24 = !{!25}
!25 = distinct !{!25, !23}
!26 = distinct !{!26, !27, !28, !29}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!"llvm.loop.isvectorized", i32 1}
!29 = !{!"llvm.loop.unroll.runtime.disable"}
!30 = distinct !{!30, !27, !28}
!31 = distinct !{!31, !27}
!32 = !{i64 0, i64 4, !33, i64 4, i64 4, !33, i64 8, i64 4, !33, i64 12, i64 4, !33}
!33 = !{!14, !14, i64 0}


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