; LLVM IR from avik-das/seam-carver :: seam-carver (get_minimal_seam)

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

@stderr = external global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [32 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; 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) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @get_minimal_seam(ptr noundef %0, i32 noundef %1, i32 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %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 %struct.seam_link, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %16 = load i32, ptr %6, align 4, !tbaa !9
  %17 = sext i32 %16 to i64
  %18 = mul i64 %17, 4
  %19 = call noalias ptr @malloc(i64 noundef %18) #6
  store ptr %19, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %25, label %22

22:                                               ; preds = %3
  %23 = load ptr, ptr @stderr, align 8, !tbaa !5
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str.9, i32 noundef 117) #5
  br label %89

25:                                               ; preds = %3
  store i32 -1, ptr %8, align 4, !tbaa !9
  store i32 2147483647, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %55, %25
  %27 = load i32, ptr %10, align 4, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

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

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %32 = load i32, ptr %5, align 4, !tbaa !9
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = sub nsw i32 %33, 1
  %35 = mul nsw i32 %32, %34
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = add nsw i32 %35, %36
  store i32 %37, ptr %11, align 4, !tbaa !9
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %struct.seam_link, ptr %38, i64 %40
  %42 = getelementptr inbounds %struct.seam_link, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 4, !tbaa !11
  %44 = load i32, ptr %9, align 4, !tbaa !9
  %45 = icmp ult i32 %43, %44
  br i1 %45, label %46, label %54

46:                                               ; preds = %31
  %47 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %47, ptr %8, align 4, !tbaa !9
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load i32, ptr %11, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds %struct.seam_link, ptr %48, i64 %50
  %52 = getelementptr inbounds %struct.seam_link, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 4, !tbaa !11
  store i32 %53, ptr %9, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %46, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %55

55:                                               ; preds = %54
  %56 = load i32, ptr %10, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %10, align 4, !tbaa !9
  br label %26, !llvm.loop !13

58:                                               ; preds = %30
  store i32 0, ptr %12, align 4, !tbaa !9
  %59 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %59, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %60

60:                                               ; preds = %85, %58
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %88

65:                                               ; preds = %60
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %12, align 4, !tbaa !9
  %70 = sext i32 %68 to i64
  %71 = getelementptr inbounds i32, ptr %67, i64 %70
  store i32 %66, ptr %71, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = sub nsw i32 %74, 1
  %76 = load i32, ptr %14, align 4, !tbaa !9
  %77 = sub nsw i32 %75, %76
  %78 = mul nsw i32 %73, %77
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = add nsw i32 %78, %79
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds %struct.seam_link, ptr %72, i64 %81
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %82, i64 8, i1 false), !tbaa.struct !15
  %83 = getelementptr inbounds %struct.seam_link, ptr %15, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !16
  store i32 %84, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %85

85:                                               ; preds = %65
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %14, align 4, !tbaa !9
  br label %60, !llvm.loop !17

88:                                               ; preds = %64
  br label %89

89:                                               ; preds = %88, %22
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret ptr %90
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 = !{!12, !10, i64 0}
!12 = !{!"seam_link", !10, i64 0, !10, i64 4}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!16 = !{!12, !10, i64 4}
!17 = distinct !{!17, !14}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.9 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

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

; Function Attrs: nofree nounwind uwtable
define dso_local noalias noundef ptr @get_minimal_seam(ptr nocapture noundef readonly %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = sext i32 %2 to i64
  %5 = shl nsw i64 %4, 2
  %6 = tail call noalias ptr @malloc(i64 noundef %5) #4
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %12, label %.preheader38

.preheader38:                                     ; preds = %3
  %7 = icmp sgt i32 %1, 0
  br i1 %7, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %.preheader38
  %8 = add nsw i32 %2, -1
  %9 = mul nsw i32 %8, %1
  %10 = sext i32 %9 to i64
  %wide.trip.count = zext nneg i32 %1 to i64
  %invariant.gep = getelementptr %struct.seam_link, ptr %0, i64 %10
  %xtraiter = and i64 %wide.trip.count, 3
  %11 = icmp ult i32 %1, 4
  br i1 %11, label %.preheader.loopexit.unr-lcssa, label %.lr.ph.new

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

12:                                               ; preds = %3
  %13 = load ptr, ptr @stderr, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %13, ptr noundef nonnull @.str.9, i32 noundef 117) #5
  br label %.loopexit

.preheader.loopexit.unr-lcssa:                    ; preds = %20, %.lr.ph
  %spec.select37.lcssa.ph = phi i32 [ poison, %.lr.ph ], [ %spec.select37.3, %20 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.3, %20 ]
  %.041.unr = phi i32 [ -1, %.lr.ph ], [ %spec.select37.3, %20 ]
  %.02640.unr = phi i32 [ 2147483647, %.lr.ph ], [ %spec.select.3, %20 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %.preheader.loopexit.unr-lcssa ]
  %.041.epil = phi i32 [ %spec.select37.epil, %.epil.preheader ], [ %.041.unr, %.preheader.loopexit.unr-lcssa ]
  %.02640.epil = phi i32 [ %spec.select.epil, %.epil.preheader ], [ %.02640.unr, %.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader.loopexit.unr-lcssa ]
  %gep.epil = getelementptr %struct.seam_link, ptr %invariant.gep, i64 %indvars.iv.epil
  %15 = load i32, ptr %gep.epil, align 4, !tbaa !9
  %16 = icmp ult i32 %15, %.02640.epil
  %spec.select.epil = tail call i32 @llvm.umin.i32(i32 %15, i32 %.02640.epil)
  %17 = trunc nuw nsw i64 %indvars.iv.epil to i32
  %spec.select37.epil = select i1 %16, i32 %17, i32 %.041.epil
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader, label %.epil.preheader, !llvm.loop !12

.preheader:                                       ; preds = %.preheader.loopexit.unr-lcssa, %.epil.preheader, %.preheader38
  %.0.lcssa = phi i32 [ -1, %.preheader38 ], [ %spec.select37.lcssa.ph, %.preheader.loopexit.unr-lcssa ], [ %spec.select37.epil, %.epil.preheader ]
  %18 = icmp sgt i32 %2, 0
  br i1 %18, label %.lr.ph45.preheader, label %.loopexit

.lr.ph45.preheader:                               ; preds = %.preheader
  %wide.trip.count52 = zext nneg i32 %2 to i64
  %xtraiter55 = and i64 %wide.trip.count52, 1
  %19 = icmp eq i32 %2, 1
  br i1 %19, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph45.preheader.new

.lr.ph45.preheader.new:                           ; preds = %.lr.ph45.preheader
  %unroll_iter58 = and i64 %wide.trip.count52, 2147483646
  br label %.lr.ph45

20:                                               ; preds = %20, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.3, %20 ]
  %.041 = phi i32 [ -1, %.lr.ph.new ], [ %spec.select37.3, %20 ]
  %.02640 = phi i32 [ 2147483647, %.lr.ph.new ], [ %spec.select.3, %20 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %20 ]
  %gep = getelementptr %struct.seam_link, ptr %invariant.gep, i64 %indvars.iv
  %21 = load i32, ptr %gep, align 4, !tbaa !9
  %22 = icmp ult i32 %21, %.02640
  %spec.select = tail call i32 @llvm.umin.i32(i32 %21, i32 %.02640)
  %23 = trunc nuw nsw i64 %indvars.iv to i32
  %spec.select37 = select i1 %22, i32 %23, i32 %.041
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %gep.1 = getelementptr %struct.seam_link, ptr %invariant.gep, i64 %indvars.iv.next
  %24 = load i32, ptr %gep.1, align 4, !tbaa !9
  %25 = icmp ult i32 %24, %spec.select
  %spec.select.1 = tail call i32 @llvm.umin.i32(i32 %24, i32 %spec.select)
  %26 = trunc nuw nsw i64 %indvars.iv.next to i32
  %spec.select37.1 = select i1 %25, i32 %26, i32 %spec.select37
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %gep.2 = getelementptr %struct.seam_link, ptr %invariant.gep, i64 %indvars.iv.next.1
  %27 = load i32, ptr %gep.2, align 4, !tbaa !9
  %28 = icmp ult i32 %27, %spec.select.1
  %spec.select.2 = tail call i32 @llvm.umin.i32(i32 %27, i32 %spec.select.1)
  %29 = trunc nuw nsw i64 %indvars.iv.next.1 to i32
  %spec.select37.2 = select i1 %28, i32 %29, i32 %spec.select37.1
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %gep.3 = getelementptr %struct.seam_link, ptr %invariant.gep, i64 %indvars.iv.next.2
  %30 = load i32, ptr %gep.3, align 4, !tbaa !9
  %31 = icmp ult i32 %30, %spec.select.2
  %spec.select.3 = tail call i32 @llvm.umin.i32(i32 %30, i32 %spec.select.2)
  %32 = trunc nuw nsw i64 %indvars.iv.next.2 to i32
  %spec.select37.3 = select i1 %31, i32 %32, i32 %spec.select37.2
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader.loopexit.unr-lcssa, label %20, !llvm.loop !14

.lr.ph45:                                         ; preds = %.lr.ph45, %.lr.ph45.preheader.new
  %indvars.iv47 = phi i64 [ 0, %.lr.ph45.preheader.new ], [ %indvars.iv.next48.1, %.lr.ph45 ]
  %.02943 = phi i32 [ %.0.lcssa, %.lr.ph45.preheader.new ], [ %.sroa.3.0.copyload.1, %.lr.ph45 ]
  %niter59 = phi i64 [ 0, %.lr.ph45.preheader.new ], [ %niter59.next.1, %.lr.ph45 ]
  %indvars49 = trunc i64 %indvars.iv47 to i32
  %indvars.iv.next48 = or disjoint i64 %indvars.iv47, 1
  %33 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv47
  store i32 %.02943, ptr %33, align 4, !tbaa !16
  %34 = xor i32 %indvars49, -1
  %35 = add nsw i32 %34, %2
  %36 = mul nsw i32 %35, %1
  %37 = add nsw i32 %36, %.02943
  %38 = sext i32 %37 to i64
  %.sroa.3.0..sroa_idx = getelementptr inbounds %struct.seam_link, ptr %0, i64 %38, i32 1
  %.sroa.3.0.copyload = load i32, ptr %.sroa.3.0..sroa_idx, align 4, !tbaa !16
  %indvars49.1 = trunc i64 %indvars.iv.next48 to i32
  %indvars.iv.next48.1 = add nuw nsw i64 %indvars.iv47, 2
  %39 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv.next48
  store i32 %.sroa.3.0.copyload, ptr %39, align 4, !tbaa !16
  %40 = xor i32 %indvars49.1, -1
  %41 = add nsw i32 %40, %2
  %42 = mul nsw i32 %41, %1
  %43 = add nsw i32 %42, %.sroa.3.0.copyload
  %44 = sext i32 %43 to i64
  %.sroa.3.0..sroa_idx.1 = getelementptr inbounds %struct.seam_link, ptr %0, i64 %44, i32 1
  %.sroa.3.0.copyload.1 = load i32, ptr %.sroa.3.0..sroa_idx.1, align 4, !tbaa !16
  %niter59.next.1 = add i64 %niter59, 2
  %niter59.ncmp.1 = icmp eq i64 %niter59.next.1, %unroll_iter58
  br i1 %niter59.ncmp.1, label %.loopexit.loopexit.unr-lcssa, label %.lr.ph45, !llvm.loop !17

.loopexit.loopexit.unr-lcssa:                     ; preds = %.lr.ph45, %.lr.ph45.preheader
  %indvars.iv47.unr = phi i64 [ 0, %.lr.ph45.preheader ], [ %indvars.iv.next48.1, %.lr.ph45 ]
  %.02943.unr = phi i32 [ %.0.lcssa, %.lr.ph45.preheader ], [ %.sroa.3.0.copyload.1, %.lr.ph45 ]
  %lcmp.mod57.not = icmp eq i64 %xtraiter55, 0
  br i1 %lcmp.mod57.not, label %.loopexit, label %.lr.ph45.epil

.lr.ph45.epil:                                    ; preds = %.loopexit.loopexit.unr-lcssa
  %45 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv47.unr
  store i32 %.02943.unr, ptr %45, align 4, !tbaa !16
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph45.epil, %.loopexit.loopexit.unr-lcssa, %.preheader, %12
  ret ptr %6
}

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

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 = { 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 #2 = { nofree 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind allocsize(0) }
attributes #5 = { cold 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, !11, i64 0}
!10 = !{!"seam_link", !11, i64 0, !11, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!11, !11, i64 0}
!17 = distinct !{!17, !15}


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