; LLVM IR from wuzhouhui/leetcode :: 60_permu_seq (getPermutation)

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @getPermutation(i32 noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %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
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i32 1, ptr %7, align 4, !tbaa !5
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %22, %2
  %15 = load i32, ptr %6, align 4, !tbaa !5
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = icmp sle i32 %15, %16
  br i1 %17, label %18, label %25

18:                                               ; preds = %14
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = load i32, ptr %7, align 4, !tbaa !5
  %21 = mul nsw i32 %20, %19
  store i32 %21, ptr %7, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %18
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %6, align 4, !tbaa !5
  br label %14, !llvm.loop !9

25:                                               ; preds = %14
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = icmp slt i32 %26, 1
  br i1 %27, label %32, label %28

28:                                               ; preds = %25
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = load i32, ptr %7, align 4, !tbaa !5
  %31 = icmp sgt i32 %29, %30
  br i1 %31, label %32, label %34

32:                                               ; preds = %28, %25
  %33 = call noalias ptr @strdup(ptr noundef @.str) #4
  store ptr %33, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %124

34:                                               ; preds = %28
  store ptr null, ptr %11, align 8, !tbaa !11
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %62, %34
  %36 = load i32, ptr %6, align 4, !tbaa !5
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = icmp sle i32 %36, %37
  br i1 %38, label %39, label %65

39:                                               ; preds = %35
  %40 = load ptr, ptr %11, align 8, !tbaa !11
  %41 = icmp ne ptr %40, null
  br i1 %41, label %49, label %42

42:                                               ; preds = %39
  %43 = call noalias ptr @malloc(i64 noundef 16) #5
  store ptr %43, ptr %12, align 8, !tbaa !11
  store ptr %43, ptr %11, align 8, !tbaa !11
  %44 = load i32, ptr %6, align 4, !tbaa !5
  %45 = load ptr, ptr %11, align 8, !tbaa !11
  %46 = getelementptr inbounds %struct.node, ptr %45, i32 0, i32 0
  store i32 %44, ptr %46, align 8, !tbaa !13
  %47 = load ptr, ptr %11, align 8, !tbaa !11
  %48 = getelementptr inbounds %struct.node, ptr %47, i32 0, i32 1
  store ptr null, ptr %48, align 8, !tbaa !15
  br label %61

49:                                               ; preds = %39
  %50 = call noalias ptr @malloc(i64 noundef 16) #5
  %51 = load ptr, ptr %12, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.node, ptr %51, i32 0, i32 1
  store ptr %50, ptr %52, align 8, !tbaa !15
  %53 = load ptr, ptr %12, align 8, !tbaa !11
  %54 = getelementptr inbounds %struct.node, ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !15
  store ptr %55, ptr %12, align 8, !tbaa !11
  %56 = load i32, ptr %6, align 4, !tbaa !5
  %57 = load ptr, ptr %12, align 8, !tbaa !11
  %58 = getelementptr inbounds %struct.node, ptr %57, i32 0, i32 0
  store i32 %56, ptr %58, align 8, !tbaa !13
  %59 = load ptr, ptr %12, align 8, !tbaa !11
  %60 = getelementptr inbounds %struct.node, ptr %59, i32 0, i32 1
  store ptr null, ptr %60, align 8, !tbaa !15
  br label %61

61:                                               ; preds = %49, %42
  br label %62

62:                                               ; preds = %61
  %63 = load i32, ptr %6, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %6, align 4, !tbaa !5
  br label %35, !llvm.loop !16

65:                                               ; preds = %35
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = add nsw i32 %66, -1
  store i32 %67, ptr %5, align 4, !tbaa !5
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = sdiv i32 %69, %68
  store i32 %70, ptr %7, align 4, !tbaa !5
  store i32 0, ptr %8, align 4, !tbaa !5
  %71 = load i32, ptr %4, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  %73 = sext i32 %72 to i64
  %74 = call noalias ptr @malloc(i64 noundef %73) #5
  store ptr %74, ptr %10, align 8, !tbaa !11
  %75 = load i32, ptr %4, align 4, !tbaa !5
  %76 = sub nsw i32 %75, 1
  store i32 %76, ptr %6, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %103, %65
  %78 = load i32, ptr %6, align 4, !tbaa !5
  %79 = icmp sge i32 %78, 1
  br i1 %79, label %80, label %106

80:                                               ; preds = %77
  %81 = load i32, ptr %5, align 4, !tbaa !5
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = sdiv i32 %81, %82
  store i32 %83, ptr %9, align 4, !tbaa !5
  %84 = load i32, ptr %9, align 4, !tbaa !5
  %85 = call ptr @get_node(ptr noundef %11, i32 noundef %84)
  store ptr %85, ptr %12, align 8, !tbaa !11
  %86 = load ptr, ptr %12, align 8, !tbaa !11
  %87 = getelementptr inbounds %struct.node, ptr %86, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !13
  %89 = add nsw i32 %88, 48
  %90 = trunc i32 %89 to i8
  %91 = load ptr, ptr %10, align 8, !tbaa !11
  %92 = load i32, ptr %8, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %8, align 4, !tbaa !5
  %94 = sext i32 %92 to i64
  %95 = getelementptr inbounds i8, ptr %91, i64 %94
  store i8 %90, ptr %95, align 1, !tbaa !17
  %96 = load ptr, ptr %12, align 8, !tbaa !11
  call void @free(ptr noundef %96) #4
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = load i32, ptr %5, align 4, !tbaa !5
  %99 = srem i32 %98, %97
  store i32 %99, ptr %5, align 4, !tbaa !5
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = sdiv i32 %101, %100
  store i32 %102, ptr %7, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %80
  %104 = load i32, ptr %6, align 4, !tbaa !5
  %105 = add nsw i32 %104, -1
  store i32 %105, ptr %6, align 4, !tbaa !5
  br label %77, !llvm.loop !18

106:                                              ; preds = %77
  %107 = call ptr @get_node(ptr noundef %11, i32 noundef 0)
  store ptr %107, ptr %12, align 8, !tbaa !11
  %108 = load ptr, ptr %12, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.node, ptr %108, i32 0, i32 0
  %110 = load i32, ptr %109, align 8, !tbaa !13
  %111 = add nsw i32 %110, 48
  %112 = trunc i32 %111 to i8
  %113 = load ptr, ptr %10, align 8, !tbaa !11
  %114 = load i32, ptr %8, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %8, align 4, !tbaa !5
  %116 = sext i32 %114 to i64
  %117 = getelementptr inbounds i8, ptr %113, i64 %116
  store i8 %112, ptr %117, align 1, !tbaa !17
  %118 = load ptr, ptr %12, align 8, !tbaa !11
  call void @free(ptr noundef %118) #4
  %119 = load ptr, ptr %10, align 8, !tbaa !11
  %120 = load i32, ptr %8, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i8, ptr %119, i64 %121
  store i8 0, ptr %122, align 1, !tbaa !17
  %123 = load ptr, ptr %10, align 8, !tbaa !11
  store ptr %123, ptr %3, align 8
  store i32 1, ptr %13, align 4
  br label %124

124:                                              ; preds = %106, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %125 = load ptr, ptr %3, align 8
  ret ptr %125
}

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

; Function Attrs: nounwind
declare noalias ptr @strdup(ptr noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden ptr @get_node(ptr noundef, i32 noundef) #0

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

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"node", !6, i64 0, !12, i64 8}
!15 = !{!14, !12, i64 8}
!16 = distinct !{!16, !10}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !10}


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

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

; Function Attrs: nounwind uwtable
define dso_local noalias ptr @getPermutation(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %.not53 = icmp slt i32 %0, 1
  br i1 %.not53, label %._crit_edge.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %2
  %min.iters.check = icmp ult i32 %0, 8
  br i1 %min.iters.check, label %.lr.ph.preheader90, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i32 %0, 2147483640
  %ind.end = or disjoint i32 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %4, %vector.body ]
  %vec.phi87 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %5, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %4 = mul <4 x i32> %vec.phi, %vec.ind
  %5 = mul <4 x i32> %vec.phi87, %step.add
  %index.next = add nuw i32 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %6 = icmp eq i32 %index.next, %n.vec
  br i1 %6, label %middle.block, label %vector.body, !llvm.loop !5

middle.block:                                     ; preds = %vector.body
  %bin.rdx = mul <4 x i32> %5, %4
  %7 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i32 %n.vec, %0
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader90

.lr.ph.preheader90:                               ; preds = %middle.block, %.lr.ph.preheader
  %.04555.ph = phi i32 [ 1, %.lr.ph.preheader ], [ %7, %middle.block ]
  %.04754.ph = phi i32 [ 1, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader90, %.lr.ph
  %.04555 = phi i32 [ %8, %.lr.ph ], [ %.04555.ph, %.lr.ph.preheader90 ]
  %.04754 = phi i32 [ %9, %.lr.ph ], [ %.04754.ph, %.lr.ph.preheader90 ]
  %8 = mul nuw nsw i32 %.04555, %.04754
  %9 = add nuw i32 %.04754, 1
  %exitcond.not = icmp eq i32 %.04754, %0
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %middle.block
  %.lcssa86 = phi i32 [ %7, %middle.block ], [ %8, %.lr.ph ]
  %10 = icmp slt i32 %1, 1
  %11 = icmp slt i32 %.lcssa86, %1
  %or.cond = select i1 %10, i1 true, i1 %11
  br i1 %or.cond, label %12, label %14

._crit_edge.thread:                               ; preds = %2
  %or.cond78.not = icmp eq i32 %1, 1
  br i1 %or.cond78.not, label %._crit_edge61, label %12

12:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %13 = tail call noalias ptr @strdup(ptr noundef nonnull @.str) #6
  br label %44

14:                                               ; preds = %._crit_edge
  br i1 %.not53, label %._crit_edge61, label %.lr.ph60

.lr.ph60:                                         ; preds = %14, %19
  %.058 = phi ptr [ %16, %19 ], [ undef, %14 ]
  %.14857 = phi i32 [ %22, %19 ], [ 1, %14 ]
  %15 = phi ptr [ %20, %19 ], [ null, %14 ]
  %.not52 = icmp eq ptr %15, null
  %16 = tail call noalias dereferenceable_or_null(16) ptr @malloc(i64 noundef 16) #7
  br i1 %.not52, label %19, label %17

17:                                               ; preds = %.lr.ph60
  %18 = getelementptr inbounds i8, ptr %.058, i64 8
  store ptr %16, ptr %18, align 8, !tbaa !10
  br label %19

19:                                               ; preds = %.lr.ph60, %17
  %20 = phi ptr [ %15, %17 ], [ %16, %.lr.ph60 ]
  store i32 %.14857, ptr %16, align 8, !tbaa !16
  %21 = getelementptr inbounds i8, ptr %16, i64 8
  store ptr null, ptr %21, align 8, !tbaa !10
  %22 = add nuw i32 %.14857, 1
  %exitcond74.not = icmp eq i32 %.14857, %0
  br i1 %exitcond74.not, label %._crit_edge61, label %.lr.ph60, !llvm.loop !17

._crit_edge61:                                    ; preds = %19, %._crit_edge.thread, %14
  %.045.lcssa7981 = phi i32 [ %.lcssa86, %14 ], [ 1, %._crit_edge.thread ], [ %.lcssa86, %19 ]
  %.lcssa = phi ptr [ null, %14 ], [ null, %._crit_edge.thread ], [ %20, %19 ]
  %.pre-phi = add i32 %0, 1
  store ptr %.lcssa, ptr %3, align 8, !tbaa !18
  %23 = sext i32 %.pre-phi to i64
  %24 = tail call noalias ptr @malloc(i64 noundef %23) #7
  %25 = icmp sgt i32 %0, 1
  br i1 %25, label %.lr.ph68.preheader, label %._crit_edge69

.lr.ph68.preheader:                               ; preds = %._crit_edge61
  %26 = sdiv i32 %.045.lcssa7981, %0
  %27 = add nsw i32 %1, -1
  %28 = add nsw i32 %0, -1
  %wide.trip.count = zext nneg i32 %28 to i64
  br label %.lr.ph68

.lr.ph68:                                         ; preds = %.lr.ph68.preheader, %.lr.ph68
  %indvars.iv = phi i64 [ 0, %.lr.ph68.preheader ], [ %indvars.iv.next, %.lr.ph68 ]
  %.04366 = phi i32 [ %27, %.lr.ph68.preheader ], [ %35, %.lr.ph68 ]
  %.14664 = phi i32 [ %26, %.lr.ph68.preheader ], [ %36, %.lr.ph68 ]
  %.2.in63 = phi i32 [ %0, %.lr.ph68.preheader ], [ %.2, %.lr.ph68 ]
  %.2 = add nsw i32 %.2.in63, -1
  %29 = sdiv i32 %.04366, %.14664
  %30 = call ptr @get_node(ptr noundef nonnull %3, i32 noundef %29)
  %31 = load i32, ptr %30, align 8, !tbaa !16
  %32 = trunc i32 %31 to i8
  %33 = add i8 %32, 48
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = getelementptr inbounds i8, ptr %24, i64 %indvars.iv
  store i8 %33, ptr %34, align 1, !tbaa !19
  call void @free(ptr noundef %30) #6
  %35 = srem i32 %.04366, %.14664
  %36 = sdiv i32 %.14664, %.2
  %exitcond76.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond76.not, label %._crit_edge69.loopexit, label %.lr.ph68, !llvm.loop !20

._crit_edge69.loopexit:                           ; preds = %.lr.ph68
  %37 = zext nneg i32 %28 to i64
  br label %._crit_edge69

._crit_edge69:                                    ; preds = %._crit_edge61, %._crit_edge69.loopexit
  %.044.lcssa = phi i64 [ %37, %._crit_edge69.loopexit ], [ 0, %._crit_edge61 ]
  %38 = call ptr @get_node(ptr noundef nonnull %3, i32 noundef 0)
  %39 = load i32, ptr %38, align 8, !tbaa !16
  %40 = trunc i32 %39 to i8
  %41 = add i8 %40, 48
  %42 = getelementptr inbounds i8, ptr %24, i64 %.044.lcssa
  store i8 %41, ptr %42, align 1, !tbaa !19
  call void @free(ptr noundef %38) #6
  %43 = getelementptr inbounds i8, ptr %42, i64 1
  store i8 0, ptr %43, align 1, !tbaa !19
  br label %44

44:                                               ; preds = %._crit_edge69, %12
  %.042 = phi ptr [ %13, %12 ], [ %24, %._crit_edge69 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret ptr %.042
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias ptr @strdup(ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare hidden ptr @get_node(ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #5

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn 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 #3 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }
attributes #7 = { 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 = distinct !{!5, !6, !7, !8}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!"llvm.loop.isvectorized", i32 1}
!8 = !{!"llvm.loop.unroll.runtime.disable"}
!9 = distinct !{!9, !6, !8, !7}
!10 = !{!11, !15, i64 8}
!11 = !{!"node", !12, i64 0, !15, i64 8}
!12 = !{!"int", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C/C++ TBAA"}
!15 = !{!"any pointer", !13, i64 0}
!16 = !{!11, !12, i64 0}
!17 = distinct !{!17, !6}
!18 = !{!15, !15, i64 0}
!19 = !{!13, !13, i64 0}
!20 = distinct !{!20, !6}


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